summaryrefslogtreecommitdiff
path: root/plugins/python/exectracer
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2012-02-18 16:41:31 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2012-02-18 16:41:31 (GMT)
commitdeb012d919ea6c5e79702a39a03a85be2ffcf406 (patch)
treeae9cee108d05e0a6674d8617a08d0ea09165443c /plugins/python/exectracer
parent73605bffb935fc51a52be1936426211e31dd898a (diff)
Retrieved the frames stack from the running process.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@235 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'plugins/python/exectracer')
-rw-r--r--plugins/python/exectracer/exectracer.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/python/exectracer/exectracer.py b/plugins/python/exectracer/exectracer.py
index 898f0be..76e2ce4 100644
--- a/plugins/python/exectracer/exectracer.py
+++ b/plugins/python/exectracer/exectracer.py
@@ -21,3 +21,13 @@ class ExecTracer(Plugin):
for i in debugger.list_all_threads():
print "Thread %d '%s'" % (i[0], i[1])
+
+ frames = debugger.get_frames_stack(i[0])
+
+ for frame in frames:
+ print " 0x%08x" % frame[0]
+
+ if len(frames) == 0:
+ print " -"
+
+