Index: tools/gdb/gdb_chrome.py |
diff --git a/tools/gdb/gdb_chrome.py b/tools/gdb/gdb_chrome.py |
index 8c5405c5d0a15930b1b8f5a6bd039bcfacc8d29b..9271be7e15be5c166982223c52564f6b8181c7c7 100644 |
--- a/tools/gdb/gdb_chrome.py |
+++ b/tools/gdb/gdb_chrome.py |
@@ -194,8 +194,12 @@ class IpcMessagePrinter(Printer): |
def to_string(self): |
message_type = self.header()['type'] |
+ try: |
+ type = self.val.dynamic_type |
+ except: |
+ type = self.val.type |
return '%s of kind %s line %s' % ( |
- self.val.dynamic_type, |
+ type, |
(message_type >> 16).cast(gdb.lookup_type('IPCMessageStart')), |
message_type & 0xffff) |