[Lldb-commits] [lldb] r163589 - /lldb/trunk/examples/python/stacks.py
Greg Clayton
gclayton at apple.com
Mon Sep 10 19:25:20 PDT 2012
Author: gclayton
Date: Mon Sep 10 21:25:20 2012
New Revision: 163589
URL: http://llvm.org/viewvc/llvm-project?rev=163589&view=rev
Log:
Print the stack size followed by the full stack info.
Modified:
lldb/trunk/examples/python/stacks.py
Modified: lldb/trunk/examples/python/stacks.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/examples/python/stacks.py?rev=163589&r1=163588&r2=163589&view=diff
==============================================================================
--- lldb/trunk/examples/python/stacks.py (original)
+++ lldb/trunk/examples/python/stacks.py Mon Sep 10 21:25:20 2012
@@ -31,7 +31,7 @@
else:
# First frame that has a valid size
first_frame_size = last_frame.fp - last_frame.sp
- print "frame[%u] size 0x%x" % (last_frame.idx, first_frame_size)
+ print "<%#7x> %s" % (first_frame_size, last_frame)
if first_frame_size:
name = last_frame.name
if name not in frame_info:
@@ -41,7 +41,7 @@
else:
# Second or higher frame
frame_size = frame.fp - last_frame.fp
- print "frame[%u] size 0x%x" % (frame.idx, frame_size)
+ print "<%#7x> %s" % (frame_size, frame)
if frame_size > 0:
name = frame.name
if name not in frame_info:
More information about the lldb-commits
mailing list