summaryrefslogtreecommitdiff
path: root/buildscripts
diff options
context:
space:
mode:
authorJonathan Reams <jbreams@mongodb.com>2018-02-05 13:23:47 -0500
committerJonathan Reams <jbreams@mongodb.com>2018-02-09 10:59:48 -0500
commit6661b9abbbd09a1fee80eab9bd75c715200986ed (patch)
tree488b0678e20cfcbb37a74c53135f3205e2b0b695 /buildscripts
parent1e9f9c65a8fa0cd642c7cc7df43949f00bc971fe (diff)
downloadmongo-6661b9abbbd09a1fee80eab9bd75c715200986ed.tar.gz
SERVER-32853 GDB shouldn't look for non-existent 'location' field in Status
Diffstat (limited to 'buildscripts')
-rw-r--r--buildscripts/gdb/mongo_printers.py13
1 files changed, 2 insertions, 11 deletions
diff --git a/buildscripts/gdb/mongo_printers.py b/buildscripts/gdb/mongo_printers.py
index b310eae5989..1e0ada49fae 100644
--- a/buildscripts/gdb/mongo_printers.py
+++ b/buildscripts/gdb/mongo_printers.py
@@ -22,7 +22,6 @@ def get_unique_ptr(obj):
return obj["_M_t"]['_M_head_impl']
-
###################################################################################################
#
# Pretty-Printers
@@ -46,12 +45,8 @@ class StatusPrinter(object):
code = str(code).split('::')[-1]
info = self.val['_error'].dereference()
- location = info['location']
reason = info['reason']
- if location:
- return 'Status(%s, %s, %s)' % (code, reason, location)
- else:
- return 'Status(%s, %s)' % (code, reason)
+ return 'Status(%s, %s)' % (code, reason)
class StatusWithPrinter:
@@ -69,12 +64,8 @@ class StatusWithPrinter:
code = str(code).split('::')[-1]
info = self.val['_status']['_error'].dereference()
- location = info['location']
reason = info['reason']
- if location:
- return 'StatusWith(%s, %s, %s)' % (code, reason, location)
- else:
- return 'StatusWith(%s, %s)' % (code, reason)
+ return 'StatusWith(%s, %s)' % (code, reason)
class StringDataPrinter: