mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 06:41:44 +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:
parent
fc151e10cd
commit
4a12cafe7f
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue