Commit cc013037 authored by hjk's avatar hjk

debugger: try to give more error details from the python dumpers in the debugger log

parent 67e263de
......@@ -116,8 +116,10 @@ def lookupType(typestring):
try:
#warn("LOOKING UP '%s'" % ts)
type = gdb.lookup_type(ts)
except:
except RuntimeError, error:
# Can throw "RuntimeError: No type named class Foo."
warn("LOOKING UP '%s': %s " % (ts, error))
except:
#warn("LOOKING UP '%s' FAILED" % ts)
pass
#warn(" RESULT: '%s'" % type)
......@@ -430,8 +432,11 @@ def listOfLocals(varList):
try:
frame = gdb.selected_frame()
#warn("FRAME %s: " % frame)
except RuntimeError:
warn("FRAME NOT ACCESSIBLE")
except RuntimeError, error:
warn("FRAME NOT ACCESSIBLE: %s" % error)
return []
except:
warn("FRAME NOT ACCESSIBLE FOR UNKNOWN REASONS")
return []
# gdb-6.8-symbianelf fails here
......@@ -445,8 +450,11 @@ def listOfLocals(varList):
try:
block = frame.block()
#warn("BLOCK: %s " % block)
except RuntimeError, error:
warn("FRAME NOT ACCESSIBLE: %s" % error)
return items
except:
warn("BLOCK NOT ACCESSIBLE")
warn("BLOCK NOT ACCESSIBLE FOR UNKNOWN REASONS")
return items
while True:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment