7 /* run an external debugger
9 /* #include <debug_process.h>
11 /* char *debug_process()
13 /* debug_process() runs a debugger, as specified in the
14 /* \fIdebugger_command\fR configuration variable.
16 /* Examples of non-interactive debuggers are call tracing tools
17 /* such as: trace, strace or truss.
19 /* Examples of interactive debuggers are xxgdb, xxdbx, and so on.
20 /* In order to use an X-based debugger, the process must have a
21 /* properly set up XAUTHORITY environment variable.
25 /* The Secure Mailer license must be distributed with this software.
28 /* IBM T.J. Watson Research
30 /* Yorktown Heights, NY 10598, USA
40 /* Utility library. */
46 #include "mail_params.h"
47 #include "mail_conf.h"
48 #include "debug_process.h"
50 /* debug_process - run a debugger on this process */
52 void debug_process(void)
57 * Expand $debugger_command then run it.
59 command
= mail_conf_lookup_eval(VAR_DEBUG_COMMAND
);
60 if (command
== 0 || *command
== 0)
61 msg_fatal("no %s variable set up", VAR_DEBUG_COMMAND
);
62 msg_info("running: %s", command
);