mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
plugins: allow --dev-debugger=<pluginname>.
This currently just invokes GDB, but we could generalize it (though pdb doesn't allow attaching to a running process, other python debuggers seem to). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -14,6 +14,9 @@ int daemon_poll(struct pollfd *fds, nfds_t nfds, int timeout);
|
||||
/* Shutdown for a valgrind-clean exit (frees everything) */
|
||||
void daemon_shutdown(void);
|
||||
|
||||
/* Kick in a debugger if they set --debugger */
|
||||
void daemon_maybe_debug(int argc, char *argv[]);
|
||||
|
||||
struct backtrace_state *backtrace_state;
|
||||
|
||||
#endif /* LIGHTNING_COMMON_DAEMON_H */
|
||||
|
||||
Reference in New Issue
Block a user