Johnny Chen
de2ff3b64e
Add reference to ToT/examples/customization for more customization examples.
...
llvm-svn: 141800
2011-10-12 19:20:04 +00:00
Johnny Chen
de6ade01d0
Add an examples/customization directory and add a subdirectory pwd-cd-and-system
...
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
2011-10-12 19:16:06 +00:00
Sean Callanan
1a2c5386cd
Made the expression parser's type search call the
...
proper namespace-aware APIs.
llvm-svn: 141797
2011-10-12 18:44:30 +00:00
Sean Callanan
4c3977c278
Added support to ClagnExpressionDeclMap for finding
...
data symbols in namespaces.
llvm-svn: 141792
2011-10-12 18:00:53 +00:00
Johnny Chen
04a101d475
Add cleanups for 'command script add' to TestCommandPython.py.
...
llvm-svn: 141790
2011-10-12 17:50:41 +00:00
Sean Callanan
25ea08ef8c
Changed FindExternalVisibleDecls() to use the module
...
level FindFunctions() where appropriate and not use
SymbolContext::FindFunctionsByName().
llvm-svn: 141789
2011-10-12 17:38:09 +00:00
Sean Callanan
03267a7068
Oops, committed my local build settings. Fixed that.
...
llvm-svn: 141784
2011-10-12 17:08:22 +00:00
Sean Callanan
1fd3f4f14c
Made FindGlobalVariable() optionally search a specific
...
module and namespace. Also made it use FindGlobalVariables()
instead of the more heavyweight
GetVariablesForVariableExpressionPath().
llvm-svn: 141783
2011-10-12 16:59:31 +00:00
Sean Callanan
b6d70ebc0a
Added ClangNamespaceDecl * parameters to several
...
core Module functions that the expression parser
will soon be using.
llvm-svn: 141766
2011-10-12 02:08:07 +00:00
Sean Callanan
8897224363
Cleanups in preparation for making FindExternalVisibleDecls
...
look in individual modules rather than globally.
Also some whitespace fixes.
llvm-svn: 141765
2011-10-12 01:39:28 +00:00
Johnny Chen
c79eec0c18
Add description of a more capable 'cd' command using 'command script add'.
...
llvm-svn: 141764
2011-10-12 01:28:23 +00:00
Greg Clayton
d4e2552c73
Fix preprocessor warnings for no newline at the end of the source files.
...
llvm-svn: 141755
2011-10-12 00:53:29 +00:00
Sean Callanan
503aa525ea
Implemented a namespace map that allows searching
...
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
2011-10-12 00:12:34 +00:00
Johnny Chen
8a7f3f5bac
Add a more generic stepping benchmark, which uses the '-k' option of the test driver
...
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
2011-10-11 23:22:02 +00:00
Johnny Chen
6dcbeaeecb
Patch by Dawn to add the logging capabilities to ProcessLinux.cpp.
...
llvm-svn: 141712
2011-10-11 21:21:57 +00:00
Johnny Chen
54cb8f83d9
Fix a typo in ProcessKDP::DidAttach().
...
Patch by Dawn.
llvm-svn: 141711
2011-10-11 21:17:10 +00:00
Greg Clayton
199a0bb529
Added a missing file from a previous checkin.
...
llvm-svn: 141707
2011-10-11 20:23:29 +00:00
Johnny Chen
ef9e2ef2a5
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
2011-10-11 19:39:48 +00:00
Greg Clayton
f324a89c25
Patch from Dragos Tatulea to re-enable the PECOFF object file parser for all
...
builds on all systems.
llvm-svn: 141677
2011-10-11 16:42:21 +00:00
Jim Ingham
32fc9601a1
Added some simple testcases for figuring out breakpoints by name in
...
classes & namespaces.
llvm-svn: 141629
2011-10-11 01:43:50 +00:00
Jim Ingham
d3238352c3
Remove a debugging printf...
...
llvm-svn: 141627
2011-10-11 01:30:59 +00:00
Johnny Chen
999f7ab9bd
Add '-k' option to the test driver to be able to specify a runhook, which is an lldb command
...
for the debugger to execute for certain kind of tests (for example, a benchmark).
A list of runhooks can be used to steer the debugger into the desired state before more
actions can be performed.
llvm-svn: 141626
2011-10-11 01:30:27 +00:00
Jim Ingham
2dd7f7fb71
Add a SBTarget::BreakpointCreateByName API that allows you to specify the name
...
type mask.
llvm-svn: 141625
2011-10-11 01:18:55 +00:00
Jim Ingham
ea8005a786
Fix a couple of places in FindFunctions where I was using the passed in name_type_mask
...
rather than the computed effective_name_type_mask.
llvm-svn: 141624
2011-10-11 01:18:11 +00:00
Johnny Chen
541b98517e
Remove test logic to check for clang and skip the rest due to insufficient debug info.
...
Recent changes in lldb inlining robustness seem to have fixed it.
llvm-svn: 141595
2011-10-10 23:26:54 +00:00
Johnny Chen
48d042b659
Patch from dawn@burble.org to build on linux!
...
llvm-svn: 141593
2011-10-10 23:11:50 +00:00
Johnny Chen
a10e6c1052
Add '-e' and '-x' options to the test driver to be able to specify an executable (full path)
...
and the breakpoint specification for the benchmark purpose. This is used by TestSteppingSpeed.py
to benchmark the lldb stepping speed. Without '-e' and 'x' specified, the test defaults to
run the built lldb against itself and stopped on Driver::MainLoop, then stepping for 50 times.
rdar://problem/7511193
llvm-svn: 141584
2011-10-10 22:03:44 +00:00
Johnny Chen
a319b84f6a
Modify sidebar.incl and remove files to reflect r141554 change.
...
llvm-svn: 141556
2011-10-10 18:06:09 +00:00
Johnny Chen
7571ba7015
Remove utils/emacs directory from lldb.
...
llvm-svn: 141554
2011-10-10 17:58:30 +00:00
Greg Clayton
995e10ac9b
Patch from Dragos Tatulea regarding typedefs with the new RangeArray template class.
...
llvm-svn: 141546
2011-10-10 16:33:44 +00:00
Greg Clayton
2e9f7a0f01
Remove unneeded exports.
...
llvm-svn: 141504
2011-10-08 22:26:32 +00:00
Greg Clayton
2215230040
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
2011-10-08 06:59:54 +00:00
Greg Clayton
892d898605
Added some debug code that can verify that all RangeMap.h maps are sorted when needed since RangeArray and RangeDataArray instantiations depend on it. I ran the test suite with ASSERT_RANGEMAP_ARE_SORTED defined and I got no assertions, so I disabled it prior to checkin.
...
llvm-svn: 141478
2011-10-08 03:59:55 +00:00
Greg Clayton
2e4b5c0d9d
Removed unneeded content.
...
llvm-svn: 141477
2011-10-08 03:53:14 +00:00
Greg Clayton
e7b6681863
Started on the export table for the MappedHash.
...
llvm-svn: 141469
2011-10-08 01:13:27 +00:00
Jim Ingham
eb6ba39033
Fix the last testsuite regression from the apple-names stuff.
...
llvm-svn: 141468
2011-10-08 01:11:42 +00:00
Greg Clayton
ea3e7d5ccf
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
2011-10-08 00:49:15 +00:00
Sean Callanan
2590b9ac6f
Fixed a memory leak of ASTResultSynthesizers,
...
by attaching them to the ClangExpressionParser.
llvm-svn: 141452
2011-10-08 00:21:35 +00:00
Johnny Chen
a4e8baeb33
Add fuzz call for SBBreakpointLocation.GetAddress().
...
llvm-svn: 141443
2011-10-07 23:54:04 +00:00
Sean Callanan
880e680fa3
Updated LLVM/Clang to pull in the latest ARM disassembler.
...
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
2011-10-07 23:18:13 +00:00
Jim Ingham
e71c18dff0
Remove some commented out code.
...
llvm-svn: 141431
2011-10-07 22:28:49 +00:00
Jim Ingham
adedc1f48b
Clean up some documentation.
...
llvm-svn: 141430
2011-10-07 22:28:29 +00:00
Jim Ingham
1b040c157a
Mention SBBreakpointLocation::GetAddress in the Python .i file.
...
llvm-svn: 141429
2011-10-07 22:27:25 +00:00
Jim Ingham
4cda6e058b
Move the responsibility for translating the various eFunctionNameType lookups to the
...
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
2011-10-07 22:23:45 +00:00
Jim Ingham
881ec8534e
When a function calculates its module, make sure it returns the "real" module, not the linked .o file.
...
llvm-svn: 141424
2011-10-07 22:20:35 +00:00
Jim Ingham
4a6ae0f01a
Fix the option lists that "--file" belongs to so the help won't come out whonky.
...
llvm-svn: 141423
2011-10-07 22:17:16 +00:00
Jim Ingham
f3277750df
Don't look up main to find the default source file till somebody actually asks for it.
...
llvm-svn: 141422
2011-10-07 22:16:04 +00:00
Greg Clayton
c28416d777
Removed code that was left in during testing and debugging of an issue.
...
llvm-svn: 141387
2011-10-07 19:26:25 +00:00
Johnny Chen
ebe51726b8
If we spawn an lldb process for test (via pexpect), do not load the init file unless told otherwise.
...
Set up self.lldbOption to be "--no-lldbibit" unless env variable NO_LLDBIBIT is defined and equals "NO".
Also add "-nx" to gdb spawned.
llvm-svn: 141384
2011-10-07 19:21:09 +00:00
Greg Clayton
cf0e4f0daf
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
2011-10-07 18:58:12 +00:00