aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdb.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2010-12-29 00:58:14 +0000
committerMichael Snyder <msnyder@vmware.com>2010-12-29 00:58:14 +0000
commit371d5dec8e7c12bcb4ab600a60d337891cde59a7 (patch)
tree81dc362c653ee33df949eb024e4cac842ceff81e /gdb/gdb.c
parent551ce43ca7d6e03696872b9c129afd96c6e690d8 (diff)
downloadgdb-371d5dec8e7c12bcb4ab600a60d337891cde59a7.zip
gdb-371d5dec8e7c12bcb4ab600a60d337891cde59a7.tar.gz
gdb-371d5dec8e7c12bcb4ab600a60d337891cde59a7.tar.bz2
2010-12-28 Michael Snyder <msnyder@vmware.com>
* event-loop.c: Comment clean-up. * event-loop.h: Ditto. * event-top.c: Ditto. * gdb.c: Ditto. * gdb.h: Ditto. * main.c: Ditto. * top.c: Ditto. * top.h: Ditto.
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 bc5e6cc..74f806e 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;
}