[Lldb-commits] [PATCH] D12809: Better scheme to lookup alternate mangled name when looking up function address.
Greg Clayton via lldb-commits
lldb-commits at lists.llvm.org
Mon Sep 14 11:19:33 PDT 2015
clayborg requested changes to this revision.
clayborg added a comment.
This revision now requires changes to proceed.
So let me try to understand. When we are asked during expressions to lookup some mangled named for "std::string::length()", it doesn't exist in GCC binaries. So we want to then find any alternate manglings and we do this by asking the symbol file to find alternate manglings for "std::string::length"? I.E. we remove the parens and any arguments and lookup just the fully qualified function name?
If so, we should just lookup functions using:
size_t
Module::FindFunctions (const ConstString &name,
const CompilerDeclContext *parent_decl_ctx,
uint32_t name_type_mask,
bool symbols_ok,
bool inlines_ok,
bool append,
SymbolContextList& sc_list);
And then look at all of the symbol contexts in sc_list and find a function that we want? I don't really see the need for any of the new SymbolFile::GetMangledNamesForFunction() functions.
http://reviews.llvm.org/D12809
More information about the lldb-commits
mailing list