llvm-project/lldb/source
Alex Langford cd2134e42a [lldb] Refactor Module::LookupInfo constructor
Module::LookupInfo's constructor currently goes over supported languages
trying to figure out the best way to search for a symbol name. This
seems like a great candidate for refactoring. Specifically, this is work
that can be delegated to language plugins.

Once again, the goal here is to further decouple plugins from
non-plugins. The idea is to have each language plugin take a name and
give you back some information about the name from the perspective of
the language. Specifically, each language now implements a
`GetFunctionNameInfo` method which returns an object of type
`Language::FunctionNameInfo`. Right now, it consists of a basename,
a context, and a FunctionNameType. Module::LookupInfo's constructor will
call `GetFunctionNameInfo` with the appropriate language plugin(s) and
then decide what to do with that information. I have attempted to maintain
existing behavior as best as possible.

A nice side effect of this change is that lldbCore no longer links
against the ObjC Language plugin.

Differential Revision: https://reviews.llvm.org/D108229
2021-08-24 13:53:49 -07:00
..
API Ah, fix formatting, I didn't notice lldb-instr's code 2021-08-16 13:46:54 -07:00
Breakpoint [lldb] Use a struct to pass function search options to Module::FindFunction 2021-08-05 10:18:14 -07:00
Commands [lldb] Fix typo in the description of breakpoint options 2021-08-21 12:24:29 +02:00
Core [lldb] Refactor Module::LookupInfo constructor 2021-08-24 13:53:49 -07:00
DataFormatters [nfc] [lldb] Prevent needless copies of DataExtractor 2021-08-04 20:35:53 +02:00
Expression [lldb] [gdb-remote] Add eOpenOptionReadWrite for future gdb compat 2021-08-09 12:06:59 +02:00
Host Update logic to close inherited file descriptors. 2021-08-19 14:40:43 -07:00
Initialization [lldb] Replace default bodies of special member functions with = default; 2021-07-02 11:31:16 -07:00
Interpreter [lldb] [gdb-remote] Add eOpenOptionReadWrite for future gdb compat 2021-08-09 12:06:59 +02:00
Plugins [lldb] Refactor Module::LookupInfo constructor 2021-08-24 13:53:49 -07:00
Symbol [lldb][NFC] Remove unused header include 2021-08-19 11:06:56 -07:00
Target [LLDB][GUI] Add Process Launch form 2021-08-18 15:43:30 -07:00
Utility [lldb][AArch64] Add memory tag writing to lldb-server 2021-07-27 12:02:17 +01:00
CMakeLists.txt Remove HAVE_VCS_VERSION_INC, not needed 2020-10-29 13:09:05 -07:00
lldb.cpp [lldb] Reinstate support for LLDB_VERSION_STRING 2021-02-22 16:56:00 -08:00