From 5e033c8595e25aeae3c7865cea1af3ae9cbc94f8 Mon Sep 17 00:00:00 2001 From: Zoltan Varga Date: Sun, 4 Sep 2011 02:53:37 +0200 Subject: [PATCH] Print null MonoVTable's correctly in gdb. --- data/gdb/mono-gdb.py | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.25.1