Menu

#100 'Attach gdb' not working when launching via the shell

new
None
debugger
major
0.0.20120331
defect
2012-05-29
2012-05-29
Bruce Merry
No

It causes gdb to attach to the shell instead of the app. Possibly this can be fixed by launching with 'exec' to replace the shell with the app, although that would prevent pipelines from being used. And it still wouldn't work for shell scripts.

A better alternative may be to have a debug protocol command to allow the debugger to query the PID of the target.

Discussion