hanchenye-llvm-project/lldb
Jason Molenda 9d828ac0aa When we're unwinding out of frame 0 and we end up with a bogus frame
1 -- an address pointing off into non-executable memory -- don't
abort the unwind.  We'll use the ABI's default UnwindPlan to try
to get out of frame 1 and on many platforms with a standard frame
chain stack layout we can get back on track and get a valid frame
2.  This preserves the lldb behavior to-date; the change last week
to require the memory region to be executable broke it.

I'd like to mark this frame specially when displayed to the user;
I tried to override the places where the frame's pc value is returned
to change it to a sentinel value (e.g. LLDB_INVALID_ADDRESS) but
couldn't get that to work cleanly so I backed that part out for
now.  When this happens we'll often miss one of the user's actual
frames, the one that's of most interest to the user, so I'd like
to make this visually distinctive.

Note that a frame in non-executable memory region is only allowed
for frame 1.  After that we should be solid on the unwind and any
pc address in non-executable memory indicates a failure and we
should stop unwinding.

llvm-svn: 146723
2011-12-16 04:30:31 +00:00
..
docs When unwinding from the first frame, try to ask the remote debugserver 2011-12-13 05:39:38 +00:00
examples Add an example customization directory which uses a binutils.py module to provide 2011-10-28 23:30:28 +00:00
include <rdar://problem/10584789> 2011-12-15 04:38:41 +00:00
lib libEnhancedDisassembly.a is gone from recent LLVM. 2011-12-08 10:43:04 +00:00
lldb.xcodeproj Bumped Xcode project version to lldb-95 and debugserver-155. 2011-12-15 05:23:23 +00:00
lldb.xcworkspace Adding a Xcode workspace for lldb. 2011-01-27 20:15:39 +00:00
resources Bumped Xcode project version to lldb-95 and debugserver-155. 2011-12-15 05:23:23 +00:00
scripts Add fuzz calls for newly added SBProcess methods. Fix a typo in the audodoc of SBProcess.ReadCStringFromMemory(). 2011-12-15 22:34:59 +00:00
source When we're unwinding out of frame 0 and we end up with a bogus frame 2011-12-16 04:30:31 +00:00
test Simplify the setup leading to the testing of ReadMemory(), ReadCStringFromMemory(), and ReadUnsignedFromMemory(). 2011-12-16 01:56:27 +00:00
tools Bumped Xcode project version to lldb-95 and debugserver-155. 2011-12-15 05:23:23 +00:00
utils Add a utility script: 2011-11-04 01:05:29 +00:00
www Fix <title> on webpage. 2011-12-07 22:09:43 +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 build/Make: Tweak Clang include paths to use LLVM_{SRC,OBJ}_ROOT instead of 2011-11-11 23:36:19 +00:00