Skip to content

Commit c70a030

Browse files
committed
[CDT] gdbserver not found #36
A host `/usr/bin` folder mounted to `/var/run/host/usr/bin` is added to the `$PATH` in order to enable access to the programs installed on the host and not existing on the sandbox, for example, such as `gdbserver`. PATH is set to include '/var/run/host/usr/bin/' 'gdbinit' and 'gdbinit.d' are mounted to '/etc' to be accessed by gdb '--device=all" permission is added to allow access to devices like /dev/pts/* from sandbox Issue: #36 Signed-off-by: Victor Rubezhny <[email protected]>
1 parent 8f2e368 commit c70a030

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

org.eclipse.Java.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"--socket=wayland",
1616
"--allow=devel",
1717
"--socket=session-bus",
18-
"--device=dri"
18+
"--device=all",
19+
"--env=PATH=/app/bin:/usr/bin:/var/run/host/usr/bin"
1920
],
2021
"modules" : [ {
2122
"name" : "eclipse",
@@ -39,7 +40,9 @@
3940
"sed -i -e '/osgi.configuration.area/d' /app/eclipse/eclipse.ini",
4041
"echo \"[email protected]/.var/app/org.eclipse.Java/eclipse/configuration\" >> /app/eclipse/eclipse.ini",
4142
"echo \"--patch-module=java.base=/app/eclipse/flatpak-dev-shim.jar\" >> /app/eclipse/eclipse.ini",
42-
"echo \"-Dsun.boot.library.path=/app/lib\" >> /app/eclipse/eclipse.ini"
43+
"echo \"-Dsun.boot.library.path=/app/lib\" >> /app/eclipse/eclipse.ini",
44+
"ln -s /var/run/host/etc/gdbinit /etc",
45+
"ln -s /var/run/host/etc/gdbinit.d /etc"
4346
],
4447
"sources" : [ {
4548
"type" : "archive",

0 commit comments

Comments
 (0)