Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/data/lldb
diff options
context:
space:
mode:
Diffstat (limited to 'data/lldb')
-rw-r--r--data/lldb/monobt.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/data/lldb/monobt.py b/data/lldb/monobt.py
index f84156c5dac..8da89c2fb4c 100644
--- a/data/lldb/monobt.py
+++ b/data/lldb/monobt.py
@@ -1,4 +1,5 @@
import lldb
+import traceback
def print_frames(thread, num_frames, current_thread):
# TODO: Make output header similar to bt.
@@ -19,11 +20,11 @@ def print_frames(thread, num_frames, current_thread):
ipoffset = frame.EvaluateExpression('ip').GetValueAsUnsigned()
insn = ''
if ipoffset != 0:
- ipoffset -= frame.EvaluateExpression('imethod->code').GetValueAsUnsigned()
- insn = "\"" + frame.EvaluateExpression('mono_interp_opname [*ip]').summary[1:-1] + "\""
+ ipoffset -= frame.EvaluateExpression('frame->imethod->code').GetValueAsUnsigned()
+ insn = "\"" + frame.EvaluateExpression('mono_interp_opname (*ip)').summary[1:-1] + "\""
var = '%s @ %d %s || %s' % (methoddesc, ipoffset, insn, frame)
except Exception as e:
- print("DBG: execfail:" + str(e))
+ traceback.print_exc()
elif function_name == "mono_interp_transform_method":
try:
s = 'runtime_method->method'