lightningd: --dev-debugger=<subdaemon>

Or for blackbox tests --gdb1=<subdaemon> / --gdb2=<subdaemon>.

This makes the subdaemon wait as soon as it's execed, so we can attach
the debugger.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2017-02-24 16:22:56 +10:30
parent a72dd8d9de
commit edc30b12ea
11 changed files with 73 additions and 14 deletions

7
lightningd/debug.h Normal file
View File

@@ -0,0 +1,7 @@
#ifndef LIGHTNING_LIGHTNINGD_DEBUG_H
#define LIGHTNING_LIGHTNINGD_DEBUG_H
#include "config.h"
void subdaemon_debug(int argc, char *argv[]);
#endif /* LIGHTNING_LIGHTNINGD_DEBUG_H */