Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorZoltan Varga <vargaz@gmail.com>2011-09-04 04:53:37 +0400
committerZoltan Varga <vargaz@gmail.com>2011-09-04 04:53:37 +0400
commit5e033c8595e25aeae3c7865cea1af3ae9cbc94f8 (patch)
tree68f1dcbe4f7a5b75c06ebfdbd72174ac5ae911c1 /data
parent5f11ed2e6f4fa3a7989b1120381c4b2f48e5044c (diff)
Print null MonoVTable's correctly in gdb.
Diffstat (limited to 'data')
-rw-r--r--data/gdb/mono-gdb.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/data/gdb/mono-gdb.py b/data/gdb/mono-gdb.py
index 0d1979bd2d4..c8d921ebd38 100644
--- a/data/gdb/mono-gdb.py
+++ b/data/gdb/mono-gdb.py
@@ -291,6 +291,8 @@ class MonoVTablePrinter:
self.val = val
def to_string(self):
+ if int(self.val.cast (gdb.lookup_type ("guint64"))) == 0:
+ return "0x0"
vtable = self.val.dereference ()
klass = vtable ["klass"]
klass_printer = MonoClassPrinter (klass)