forked from OSchip/llvm-project
Enable workaround for finding functions in global namespace on linux binaries on
all hosts. We require a workaround to be able to locate global and anonymous namespace functions in the dwarf symbols on linux binaries. This patch enables this code on all platforms so that we can still find these symbols when debugging from a different host platform. Test Plan: The following tests begin passing when running with a mac host to linux client: TestCallCPPFunction.py TestCallStopAndContinue.py TestExprs.py TestExprsChar.py TestNamespace.py TestOverloadedFunctions.py TestRvalueReferences.py TestThreadExit.py Differential Revision: http://reviews.llvm.org/D9754 llvm-svn: 237270
This commit is contained in:
parent
c74e33bffe
commit
5cbd3bfca1
|
@ -4033,8 +4033,7 @@ SymbolFileDWARF::FindFunctions (const ConstString &name,
|
|||
FindFunctions (name, m_function_fullname_index, include_inlines, sc_list);
|
||||
|
||||
// FIXME Temporary workaround for global/anonymous namespace
|
||||
// functions on FreeBSD and Linux
|
||||
#if defined (__FreeBSD__) || defined (__linux__)
|
||||
// functions debugging FreeBSD and Linux binaries.
|
||||
// If we didn't find any functions in the global namespace try
|
||||
// looking in the basename index but ignore any returned
|
||||
// functions that have a namespace (ie. mangled names starting with
|
||||
|
@ -4061,7 +4060,6 @@ SymbolFileDWARF::FindFunctions (const ConstString &name,
|
|||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
DIEArray die_offsets;
|
||||
DWARFCompileUnit *dwarf_cu = NULL;
|
||||
|
|
Loading…
Reference in New Issue