[all-commits] [llvm/llvm-project] 1b7c9e: [lldb] Store StackFrameRecognizers in the target i...
Raphael Isemann via All-commits
all-commits at lists.llvm.org
Fri Jul 17 00:27:05 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 1b7c9eae6dcad09c264e29e41a69bed0d34c2f5f
https://github.com/llvm/llvm-project/commit/1b7c9eae6dcad09c264e29e41a69bed0d34c2f5f
Author: Raphael Isemann <teemperor at gmail.com>
Date: 2020-07-17 (Fri, 17 Jul 2020)
Changed paths:
M lldb/include/lldb/Target/StackFrameRecognizer.h
M lldb/include/lldb/Target/Target.h
M lldb/include/lldb/lldb-forward.h
M lldb/source/Commands/CommandObjectFrame.cpp
M lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
M lldb/source/Target/AssertFrameRecognizer.cpp
M lldb/source/Target/StackFrame.cpp
M lldb/source/Target/StackFrameRecognizer.cpp
M lldb/source/Target/Target.cpp
M lldb/test/API/commands/frame/recognizer/TestFrameRecognizer.py
M lldb/unittests/Target/StackFrameRecognizerTest.cpp
Log Message:
-----------
[lldb] Store StackFrameRecognizers in the target instead of a global list
Summary:
Currently the frame recognizers are stored in a global list (the list in the
StackFrameRecognizersManagerImpl singleton to be precise). All commands and
plugins that modify the list are just modifying that global list of recognizers
which is shared by all Target and Debugger instances.
This is clearly against the idea of LLDB being usable as a library and it also
leads to some very obscure errors as now multiple tests are sharing the used
frame recognizers. For example D83400 is currently failing as it reorders some
test_ functions which permanently changes the frame recognizers of all
debuggers/targets. As all frame recognizers are also initialized in a 'once'
guard, it's also impossible to every restore back the original frame recognizers
once they are deleted in a process.
This patch just moves the frame recognizers into the current target. This seems
the way everyone assumes the system works as for example the assert frame
recognizers is using the current target to find the function/so-name to look for
(which only works if the recognizers are stored in the target).
Reviewers: jingham, mib
Reviewed By: jingham, mib
Subscribers: MrHate, JDevlieghere
Differential Revision: https://reviews.llvm.org/D83757
More information about the All-commits
mailing list