llvm-project/lldb
Greg Clayton 95897c6a3a Added more API to lldb::SBBlock to allow getting the block
parent, sibling and first child block, and access to the
inline function information.

Added an accessor the StackFrame:

	Block * lldb_private::StackFrame::GetFrameBlock();
	
LLDB represents inline functions as lexical blocks that have
inlined function information in them. The function above allows
us to easily get the top most lexical block that defines a stack
frame. When there are no inline functions in function, the block
returned ends up being the top most block for the function. When
the PC is in an inlined funciton for a frame, this will return the
first parent block that has inlined function information. The
other accessor: StackFrame::GetBlock() will return the deepest block
that matches the frame's PC value. Since most debuggers want to display
all variables in the current frame, the Block returned by
StackFrame::GetFrameBlock can be used to retrieve all variables for
the current frame.

Fixed the lldb_private::Block::DumpStopContext(...) to properly
display inline frames a block should display all of its inlined
functions. Prior to this fix, one of the call sites was being skipped.
This is a separate code path from the current default where inlined
functions get their own frames.

Fixed an issue where a block would always grab variables for any
child inline function blocks.

llvm-svn: 113195
2010-09-07 04:20:48 +00:00
..
docs Adding some docs on how to use lldb. First cut... 2010-09-04 00:49:36 +00:00
include Added more API to lldb::SBBlock to allow getting the block 2010-09-07 04:20:48 +00:00
lib Missed an aspect of the previous makefile patch. 2010-07-24 05:18:16 +00:00
lldb.xcodeproj Added more API to lldb::SBBlock to allow getting the block 2010-09-07 04:20:48 +00:00
resources Initial checkin of lldb code from internal Apple repo. 2010-06-08 16:52:24 +00:00
scripts o Exposed SBFileSpec to the Python APIs in lldb.py. 2010-08-27 22:35:26 +00:00
source Added more API to lldb::SBBlock to allow getting the block 2010-09-07 04:20:48 +00:00
test Added a default build phase at the beginning of test_load_unload() test case. 2010-09-03 23:52:15 +00:00
tools Fixed a buffer overrun error that could occur every time the program was run due to a "sprintf" with a destination string that was too short. 2010-09-06 23:04:11 +00:00
www Fix utilities text 2010-06-12 03:34:21 +00:00
INSTALL.txt You'll need to be running Mac OS X to get lldb to build right now. 2010-06-09 07:29:26 +00:00
LICENSE.TXT test commit 2010-06-09 03:55:24 +00:00
Makefile Comment out test targets; they don't work on Linux because test/Makefile uses 2010-07-09 22:36:15 +00:00