- Oct 13, 2011
-
-
Sean Callanan authored
down through Module and SymbolVendor into SymbolFile. Added checks to SymbolFileDWARF that restrict symbol searches when a namespace is passed in. llvm-svn: 141847
-
Greg Clayton authored
be in namespaces. llvm-svn: 141845
-
Greg Clayton authored
and a "DWARFCompileUnit *" to avoid doing a DIE lookup twice and to prepare for using namespaces in the lookups. llvm-svn: 141843
-
Sean Callanan authored
we don't need to look them up again when materializing. Switched over the materialization mechanism (for JIT expressions) and the lookup mechanism (for interpreted expressions) to use the VariableSP/Symbol that were found during parsing. llvm-svn: 141839
-
Greg Clayton authored
file. This will help us to minimize lookups that can't possibly match anything in the current symbol file. llvm-svn: 141838
-
Greg Clayton authored
llvm-svn: 141832
-
Sean Callanan authored
lifetime of ClangExpressionDeclMap. This allows ClangExpressionVariables found during parsing to be queried for their containing namespaces during expression execution. Other clients (like ClangFunction) explicitly delete this state, so they should not result in any memory leaks. llvm-svn: 141821
-
- Oct 12, 2011
-
-
Sean Callanan authored
calls to the FindExternalVisibleDecls function. FindExternalVisibleDecls was recording whether it had found generic function symbols in variables that were local to the function. Now, however, multiple calls occur in response to one request from Clang, since we may be searching across namespaces. To support that, I moved the local variables into a bitfield in NameSearchContext. llvm-svn: 141808
-
Sean Callanan authored
proper namespace-aware APIs. llvm-svn: 141797
-
Sean Callanan authored
data symbols in namespaces. llvm-svn: 141792
-
Sean Callanan authored
level FindFunctions() where appropriate and not use SymbolContext::FindFunctionsByName(). llvm-svn: 141789
-
Sean Callanan authored
module and namespace. Also made it use FindGlobalVariables() instead of the more heavyweight GetVariablesForVariableExpressionPath(). llvm-svn: 141783
-
Sean Callanan authored
core Module functions that the expression parser will soon be using. llvm-svn: 141766
-
Sean Callanan authored
look in individual modules rather than globally. Also some whitespace fixes. llvm-svn: 141765
-
Greg Clayton authored
llvm-svn: 141755
-
Sean Callanan authored
of namespaces (only in the modules where they've been found) for entities inside those namespaces. For each NamespaceDecl that has been imported into the parser, we maintain a map containing [ModuleSP, ClangNamespaceDecl] pairs in the ASTImporter. This map has one entry for each module in which the namespace has been found. When we later scan for an entity inside a namespace, we search only the modules in which that namespace was found. Also made a small whitespace fix in ClangExpressionParser.cpp. llvm-svn: 141748
-
- Oct 11, 2011
-
-
Johnny Chen authored
llvm-svn: 141712
-
Johnny Chen authored
Patch by Dawn. llvm-svn: 141711
-
Greg Clayton authored
llvm-svn: 141707
-
Greg Clayton authored
builds on all systems. llvm-svn: 141677
-
Jim Ingham authored
llvm-svn: 141627
-
Jim Ingham authored
type mask. llvm-svn: 141625
-
Jim Ingham authored
rather than the computed effective_name_type_mask. llvm-svn: 141624
-
Johnny Chen authored
llvm-svn: 141593
-
- Oct 08, 2011
-
-
Greg Clayton authored
Changed RangeMap over to use llvm::SmallVector and updated the RangeArray and the RangeDataArray to have an extra "unsigned N" template parameter. Updated the lldb_private::Block to use a RangeArray with a uint32_t for both the function base offset and block range size, and then a 1 for the small vector size since most lexical blocks in DWARF only have 1 range. Updates the DWARFDebugRanges RangeArray to use an unsigned of 2 since most blocks that have more than one range usually have 2. Also updated a DWARFDebugAranges to default their RangeArray to use a SmallVector with unsigned size of 1 since this will take care of the .o files when doing DWARF in .o files and since there really isn't any good size we can guess with. llvm-svn: 141480
-
Jim Ingham authored
llvm-svn: 141468
-
Greg Clayton authored
Added more functionality to Range template classes in RangeMap.h and converted remaining DWARF areas that were using ranges over to this class. Also converted lldb_private::Block to use it. llvm-svn: 141460
-
Sean Callanan authored
by attaching them to the ClangExpressionParser. llvm-svn: 141452
-
Sean Callanan authored
This involved minor changes to the way we report Objective-C methods, as well as cosmetic changes and added parameters for a variety of Clang APIs. llvm-svn: 141437
-
Jim Ingham authored
SymbolFIle (it was done mostly in the BreakpointResolverName resolver before.) Then tailor our searches to the way the indexed maps are laid out. This removes a bunch of test case failures using indexed dSYM's. llvm-svn: 141428
-
Jim Ingham authored
When a function calculates its module, make sure it returns the "real" module, not the linked .o file. llvm-svn: 141424
-
Jim Ingham authored
llvm-svn: 141423
-
Jim Ingham authored
llvm-svn: 141422
-
- Oct 07, 2011
-
-
Greg Clayton authored
llvm-svn: 141387
-
Greg Clayton authored
Re-organized the contents of RangeMap.h to be more concise and also allow for a Range, RangeArray, RangeData (range + data), or a RangeDataArray. We have many range implementations in LLDB and I will be converting over to using the classes in RangeMap.h so we can have one set of code that does ranges and searching of ranges. Fixed up DWARFDebugAranges to use the new range classes. Fixed the enumeration parsing to take a lldb_private::Error to avoid a lot of duplicated code. Now when an invalid enumeration is supplied, an error will be returned and that error will contain a list of the valid enumeration values. llvm-svn: 141382
-
Greg Clayton authored
Since we use address ranges a lot I added a templatized class that allows us to easily control the base address type, the size type, and the data that is stored with each range. It is designed to be populated by appending all needed items, then sorting the resulting list, and optionally minimizing the list when done. I adopted this new list in the DWARFDebugAranges for even further memory savings. llvm-svn: 141352
-
rdar://problem/10226227Greg Clayton authored
Fixed the root cause of what was causing an assertion to fire during single stepping. We had an issue with the inlined stack frames where when we had inlined frames that were not in the first concrete frame where we passed the wrong PC down. We needed to decrement the PC by one for these frames to make sure we are using the same address that did the symbol context lookup. llvm-svn: 141349
-
Greg Clayton authored
llvm-svn: 141348
-
rdar://problem/10226227Greg Clayton authored
Fixed an assertion that was causing a crash. The bug describes a case where we have an inlined block that doesn't contain the frame PC that was used to lookup the symbol context in the first place. This really shouldn't happen, so now we log if we run into this and don't assert. llvm-svn: 141338
-
- Oct 06, 2011
-
-
Johnny Chen authored
llvm-svn: 141307
-