From 3930d6b6268f3060c327e556f67fa60a2fd8de01 Mon Sep 17 00:00:00 2001 From: Zoltan Varga Date: Tue, 13 Oct 2009 18:25:47 +0000 Subject: 2009-10-13 Zoltan Varga * mono-gdb.py: Add an 'xdb' command to flush the debugging info. svn path=/trunk/mono/; revision=144035 --- data/gdb/ChangeLog | 4 ++++ data/gdb/mono-gdb.py | 11 +++++++++++ 2 files changed, 15 insertions(+) (limited to 'data') diff --git a/data/gdb/ChangeLog b/data/gdb/ChangeLog index 5197ee5b75a..03775d80c28 100644 --- a/data/gdb/ChangeLog +++ b/data/gdb/ChangeLog @@ -1,3 +1,7 @@ +2009-10-13 Zoltan Varga + + * mono-gdb.py: Add an 'xdb' command to flush the debugging info. + 2009-10-12 Zoltan Varga * mono-gdb.py: Update this to gdb 7.0. diff --git a/data/gdb/mono-gdb.py b/data/gdb/mono-gdb.py index bde4d588f09..ca0d19e294f 100644 --- a/data/gdb/mono-gdb.py +++ b/data/gdb/mono-gdb.py @@ -189,8 +189,19 @@ def register_csharp_printers(obj): obj.pretty_printers.append (lookup_pretty_printer) +# This command will flush the debugging info collected by the runtime +class XdbCommand (gdb.Command): + def __init__ (self): + super (XdbCommand, self).__init__ ("xdb", gdb.COMMAND_NONE, + gdb.COMPLETE_COMMAND) + + def invoke(self, arg, from_tty): + gdb.execute ("call mono_xdebug_flush ()") + register_csharp_printers (gdb.current_objfile()) +XdbCommand () + gdb.execute ("set environment MONO_XDEBUG gdb") print "Mono support loaded." -- cgit v1.2.3