summaryrefslogtreecommitdiffstats
path: root/tools/gdb/python/objects.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gdb/python/objects.py')
-rw-r--r--tools/gdb/python/objects.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/gdb/python/objects.py b/tools/gdb/python/objects.py
index 58c2730..f4ae5e1 100644
--- a/tools/gdb/python/objects.py
+++ b/tools/gdb/python/objects.py
@@ -253,4 +253,11 @@ class control:
def name(self):
is_string = information.is_string(self._id.api(), self._id._class())
- return str(name(self.object['name'], is_string)) \ No newline at end of file
+ val = str(name(self.object['name'],is_string))
+
+ # Normal comaprision is a bit tricky with quotes
+ # 0 '\000' in hex == '3020275c30303027'
+ if val.encode('hex') == '3020275c30303027':
+ val = ""
+
+ return val \ No newline at end of file