mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
debugging: add -ex return and cont to gdb command
Have gdb execute return and continue when attaching to a subdaemon Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
committed by
Rusty Russell
parent
fc151e10cd
commit
4a12cafe7f
@@ -83,7 +83,7 @@ void subdaemon_setup(int argc, char *argv[])
|
||||
for (i = 1; i < argc; i++) {
|
||||
while (streq(argv[i], "--debugger")) {
|
||||
if (!printed)
|
||||
fprintf(stderr, "gdb -ex 'attach %u' %s\n",
|
||||
fprintf(stderr, "gdb -ex 'attach %u' %s -ex return\n",
|
||||
getpid(), argv[0]);
|
||||
printed = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user