diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2012-02-18 16:41:31 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2012-02-18 16:41:31 (GMT) |
commit | deb012d919ea6c5e79702a39a03a85be2ffcf406 (patch) | |
tree | ae9cee108d05e0a6674d8617a08d0ea09165443c /plugins/python | |
parent | 73605bffb935fc51a52be1936426211e31dd898a (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')
-rw-r--r-- | plugins/python/exectracer/exectracer.py | 10 |
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 " -" + + |