Skip to content

Commit 06e50b8

Browse files
committed
2009-10-13 Zoltan Varga <[email protected]>
* mono-gdb.py: Add an 'xdb' command to flush the debugging info. svn path=/branches/mono-2-6/mono/; revision=144036
1 parent ff049da commit 06e50b8

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

data/gdb/ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2009-10-13 Zoltan Varga <[email protected]>
2+
3+
* mono-gdb.py: Add an 'xdb' command to flush the debugging info.
4+
15
2009-10-12 Zoltan Varga <[email protected]>
26

37
* mono-gdb.py: Update this to gdb 7.0.

data/gdb/mono-gdb.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,19 @@ def register_csharp_printers(obj):
189189

190190
obj.pretty_printers.append (lookup_pretty_printer)
191191

192+
# This command will flush the debugging info collected by the runtime
193+
class XdbCommand (gdb.Command):
194+
def __init__ (self):
195+
super (XdbCommand, self).__init__ ("xdb", gdb.COMMAND_NONE,
196+
gdb.COMPLETE_COMMAND)
197+
198+
def invoke(self, arg, from_tty):
199+
gdb.execute ("call mono_xdebug_flush ()")
200+
192201
register_csharp_printers (gdb.current_objfile())
193202

203+
XdbCommand ()
204+
194205
gdb.execute ("set environment MONO_XDEBUG gdb")
195206

196207
print "Mono support loaded."

0 commit comments

Comments
 (0)