- Oct 14, 2011
-
-
Johnny Chen authored
a watchpoint for either the variable encapsulated by SBValue (Watch) or the pointee encapsulated by SBValue (WatchPointee). Removed SBFrame::WatchValue() and SBFrame::WatchLocation() API as a result of that. Modified the watchpoint related test suite to reflect the change. Plus replacing WatchpointLocation with Watchpoint throughout the code base. There are still cleanups to be dome. This patch passes the whole test suite. Check it in so that we aggressively catch regressions. llvm-svn: 141925
-
Greg Clayton authored
DIEs. Prior to this fix, there was a 1 to 1 mapping. llvm-svn: 141917
-
Greg Clayton authored
Fixed a case where we might end up trying to parse a type in the DWARF parser for a method whose class isn't currently in the process of completing itself. Currently, methods of a class, must be parsed when the class type that contains the method is asked to complete itself through the clang::ExternalASTSource virtual functions. Now we "do the right thing" by checking if the class is being defined, and if so we parse it, else we tell the class to complete itself so everything happens correctly. llvm-svn: 141908
-
Sean Callanan authored
Specifically, the expression parser used to use functions attached to SymbolContext to do lookups, but nowadays it searches a ModuleList or Module directly instead. These functions had no remaining clients so I removed them to prevent bit rot. I also removed a stray callback function from ClangExpressionDeclMap. llvm-svn: 141899
-
- Oct 13, 2011
-
-
Sean Callanan authored
which had previously been commented out while I tested it. It's not fully working yet, but it doesn't break our testsuite and it's an important piece of functionality. Also added some logging to SymbolFileDWARF to help diagnose entities that are found in a symbol file, but do not reside in the expected namespace. llvm-svn: 141894
-
Sean Callanan authored
context object. Having it populated and registered within a single FindExternalVisibleDecls call worked fine when there was only one call (i.e., when we were just looking in the global namespace). However, now FindExternalVisibleDecls is called for nested namespaces as well, which means that it is called not once but many times (once per module in which the parent namespace appears). This means that the namespace mapping is built up across many calls to the inferior FindExternalVisibleDecls, so I moved it into a data structure (the search context) that is shared by all calls. I also added some logging to make it easier to see what is happening during a namespace search, and cleaned up some existing logging. llvm-svn: 141888
-
Greg Clayton authored
llvm-svn: 141879
-
Greg Clayton authored
llvm-svn: 141876
-
Sean Callanan authored
llvm-svn: 141866
-
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
-
Johnny Chen authored
llvm-svn: 141846
-
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
-
Johnny Chen authored
llvm-svn: 141826
-
Johnny Chen authored
llvm-svn: 141823
-
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
-
-
Johnny Chen authored
llvm-svn: 141817
-
Johnny Chen authored
llvm-svn: 141810
-
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
-
Johnny Chen authored
llvm-svn: 141800
-
Johnny Chen authored
which contains the lldb init file and a utils.py Python module in order to add the 'pwd', 'cd', and 'system' lldb commands. llvm-svn: 141799
-
Sean Callanan authored
proper namespace-aware APIs. llvm-svn: 141797
-
Sean Callanan authored
data symbols in namespaces. llvm-svn: 141792
-
Johnny Chen authored
llvm-svn: 141790
-
Sean Callanan authored
level FindFunctions() where appropriate and not use SymbolContext::FindFunctionsByName(). llvm-svn: 141789
-
Sean Callanan authored
llvm-svn: 141784
-
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
-
Johnny Chen authored
llvm-svn: 141764
-
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
-
Johnny Chen authored
to be able to specify the runhook(s) to bring the debug session to a certain state before running the benchmarking logic. An example, ./dotest.py -v -t +b -k 'process attach -n Mail' -k 'thread backtrace all' -p TestRunHooksThenSteppings.py spawns lldb, attaches to the 'Mail' application, does a backtrace for all threads, and then runs the benchmark to step the inferior multiple times. llvm-svn: 141740
-
- Oct 11, 2011
-
-
Johnny Chen authored
llvm-svn: 141712
-
Johnny Chen authored
Patch by Dawn. llvm-svn: 141711
-
Greg Clayton authored
llvm-svn: 141707
-
Johnny Chen authored
Add documentation on providing the 'cd' and 'pwd' commands to lldb with the help of the embedded Python interpreter and the 'command regex' command. llvm-svn: 141698
-