[Lldb-commits] [PATCH] D73303: [lldb/Target] Add Abort StackFrame Recognizer
Med Ismail Bennani via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Jan 23 16:02:32 PST 2020
mib created this revision.
mib added reviewers: jingham, friss, LLDB.
mib added a project: LLDB.
Herald added subscribers: lldb-commits, jfb, mgorny.
When a thread stops on an abort frame, the recognizer will unwind the stack to
look for the frame from which the assert was triggered.
Once located, it will set this frame as the current one and change the stop
reason.
To do so, the StackFrameRecognizer class holds a "Most Relevant Frame" and a
StopInfo attribute. When the thread is about to stop, it checks if the
current frame is recognized, and if so, it fetches the recognized frame's
attributes and applies them.
rdar://58528686
Signed-off-by: Med Ismail Bennani <medismail.bennani at gmail.com>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D73303
Files:
lldb/include/lldb/Target/AbortRecognizer.h
lldb/include/lldb/Target/StackFrameRecognizer.h
lldb/include/lldb/Target/StopInfo.h
lldb/include/lldb/Target/Thread.h
lldb/source/Target/AbortRecognizer.cpp
lldb/source/Target/CMakeLists.txt
lldb/source/Target/Process.cpp
lldb/source/Target/StopInfo.cpp
lldb/source/Target/Thread.cpp
lldb/test/Shell/Recognizer/Inputs/abort.c
lldb/test/Shell/Recognizer/abort.test
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73303.240038.patch
Type: text/x-patch
Size: 15437 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20200124/6483afeb/attachment-0001.bin>
More information about the lldb-commits
mailing list