summaryrefslogtreecommitdiff
path: root/gdb/gdb.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/gdb.c')
-rw-r--r--gdb/gdb.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/gdb.c b/gdb/gdb.c
index bc5e6cc354d..74f806ece37 100644
--- a/gdb/gdb.c
+++ b/gdb/gdb.c
@@ -20,16 +20,21 @@
#include "main.h"
#include "gdb_string.h"
#include "interps.h"
+#include <mcheck.h>
int
main (int argc, char **argv)
{
struct captured_main_args args;
+ int ret;
+ mtrace ();
memset (&args, 0, sizeof args);
args.argc = argc;
args.argv = argv;
args.use_windows = 0;
args.interpreter_p = INTERP_CONSOLE;
- return gdb_main (&args);
+ ret = gdb_main (&args);
+ muntrace();
+ return ret;
}