It may be useful to search symbol table entries by mangled instead
of demangled names. Add this optional functionality in the SymbolTable
functions.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
@aprantl do you mean dumping this with lldb-test? I'm not seeing a way to do this. If you're thinking about symbols that reads the symbol file not the symbol table.
Who sets this flag? How do you intend to use it?
lldb/include/lldb/Core/Module.h | ||
---|---|---|
265 | Could this be Mangled::NamePreference instead of bool ? |
I need this change downstream to search for certain swift mangled names by querying Module::FindSymbolsMatchingRegExAndType. It seemed general enough that we might want this upstream.
lldb/include/lldb/Core/Module.h | ||
---|---|---|
265 | Ok! Wasn't aware of that enum. I'll change that. |
lldb/test/Shell/Symtab/Inputs/t.yaml | ||
---|---|---|
60 ↗ | (On Diff #449440) | You could make this slightly smaller by dropping the content of the __unwind_info and __eh_frame below. |
That's ok. The reason I was asking was because it affects the ways in which one can test that.
lldb/test/Shell/Symtab/Inputs/t.yaml | ||
---|---|---|
1 ↗ | (On Diff #449483) | Use a more descriptive name for the file. I'd also consider using an elf file for this test, simply because their yaml form is much more concise (and you can strip out pretty much everything except the symtab, and use an unlinked .o file as the template, and still have it work). |
Could this be Mangled::NamePreference instead of bool ?