summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2012-09-11 02:25:20 +0000
committerGreg Clayton <gclayton@apple.com>2012-09-11 02:25:20 +0000
commita4475f22fc904a1c03815762913387c7724d26c6 (patch)
tree8832ce478834c1d18e679b4f08317c5ddc459a96
parente552941316377be6dacbf8aa21ce2ffb5f1931e0 (diff)
downloadbcm5719-llvm-a4475f22fc904a1c03815762913387c7724d26c6.tar.gz
bcm5719-llvm-a4475f22fc904a1c03815762913387c7724d26c6.zip
Print the stack size followed by the full stack info.
llvm-svn: 163589
-rwxr-xr-xlldb/examples/python/stacks.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/examples/python/stacks.py b/lldb/examples/python/stacks.py
index 7b547f4eb2d..aee8c916a19 100755
--- a/lldb/examples/python/stacks.py
+++ b/lldb/examples/python/stacks.py
@@ -31,7 +31,7 @@ def stack_frames(debugger, command, result, dict):
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 @@ def stack_frames(debugger, command, result, dict):
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:
OpenPOWER on IntegriCloud