summaryrefslogtreecommitdiffstats
path: root/lldb
Commit message (Collapse)AuthorAgeFilesLines
* Revert 143359 and modify the test case to not include non-valid c identifier ↵Johnny Chen2011-10-312-2/+9
| | | | | | character. llvm-svn: 143372
* The IRDynamicChecks subsystem was not properlySean Callanan2011-10-313-1/+38
| | | | | | | | detecting Objective-C method calls because the "lldb.call.realName" metadata was no longer being correctly installed. I fixed this problem. llvm-svn: 143371
* <rdar://problem/10368163>Greg Clayton2011-10-311-2/+15
| | | | | | | | Fixed an issue where if a mach-o symbol table was corrupt and had a string table offset that is invalid, we could crash. We now properly check the string table offset and ignore any symbols with invalid strings. llvm-svn: 143362
* Add bench entries.Johnny Chen2011-10-311-0/+19
| | | | llvm-svn: 143361
* Fix the r143266 check-in which broke TestCommandRegex.py.Johnny Chen2011-10-311-7/+0
| | | | llvm-svn: 143359
* Add a Python script to invoke each test file under the test root using a ↵Johnny Chen2011-10-311-0/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | separate process. Example: [11:33:09] johnny:/Volumes/data/lldb/svn/trunk/test $ ./dosep.ty -o "-v -n" dotest.py options: -v -n Running /Volumes/data/lldb/svn/trunk/test/dotest.py -v -n -p TestPublicAPIHeaders.py /Volumes/data/lldb/svn/trunk/test/api/check_public_api_headers 1: test_sb_api_directory (TestPublicAPIHeaders.SBDirCheckerCase) Test the SB API directory and make sure there's no unwanted stuff. ... ok ---------------------------------------------------------------------- Ran 1 test in 4.404s OK Running /Volumes/data/lldb/svn/trunk/test/dotest.py -v -n -p TestEmulations.py /Volumes/data/lldb/svn/trunk/test/arm_emulation 1: test_arm_emulations (TestEmulations.ARMEmulationTestCase) ... ok 2: test_thumb_emulations (TestEmulations.ARMEmulationTestCase) ... ok ---------------------------------------------------------------------- Ran 2 tests in 1.399s OK ... llvm-svn: 143355
* When running tests, prepend our LibDir to the user's SHLIBPATH_VARPeter Collingbourne2011-10-311-1/+1
| | | | | | instead of replacing it. llvm-svn: 143323
* finish removal of alpha arch -- previous half-removal caused lldb to assert ↵Jason Molenda2011-10-292-4/+1
| | | | | | on startup llvm-svn: 143294
* Cloned FindExternalVisibleDecls fromSean Callanan2011-10-294-221/+328
| | | | | | | | | | ClangExpressionDeclMap to ClangASTSource, and moved all general type and namespace lookups into ClangASTSource. Now ClangASTSource is ready to complete types given nothing more than a target and an AST context. llvm-svn: 143292
* Moved FindExternalLexicalDecls and a few smallerSean Callanan2011-10-294-216/+146
| | | | | | functions from ClangExpressionDeclMap to ClangASTSource. llvm-svn: 143276
* I moved the responsibility for interacting with theSean Callanan2011-10-296-163/+157
| | | | | | | | | | | | AST importer on completing namespace mappings from ClangExpressionDeclMap to ClangASTSource. ClangASTSource now contains a TargetSP which it uses to lookup namespaces in all of a target's modules. I will use the TargetSP in the future to look up globals. llvm-svn: 143275
* Add a simple regression test to go with r143260.Johnny Chen2011-10-291-0/+23
| | | | | | | CommandInterpreter::PreprocessCommand() should not infinite loop when a target has not been specified yet. llvm-svn: 143274
* Remove alpha from list of known architectures -- it was just removedJason Molenda2011-10-291-3/+0
| | | | | | from llvm TOT. llvm-svn: 143273
* Updated the project to use the "DEVELOPER_DIR" build setting that specifiesGreg Clayton2011-10-293-37/+37
| | | | | | | the path to the /Developer directory, and also bumped the Xcode project version for lldb-83 and debugserver-148. llvm-svn: 143269
* Fixed the "expression" command when it comes to using it with the new GDB formatGreg Clayton2011-10-293-52/+101
| | | | | | | | | | | | | | | | | | command suffix: (lldb) expression/x 3+3 Since "expression" is a raw command that has options, we need to make sure the command gets its options properly terminated with a "--". Also fixed an issue where if you try to use the GDB command suffix on a command that doesn't support the "--gdb-format" command, it will report an appropriate error. For the fix above, you can query an lldb_private::Options object to see if it supports a long option by name. llvm-svn: 143266
* Fix a type in Symbol::Compare which was causing calls to Compare with type ↵Jim Ingham2011-10-291-1/+1
| | | | | | eSymbolTypeAny to fail. llvm-svn: 143264
* Add bench entries.Johnny Chen2011-10-291-0/+19
| | | | llvm-svn: 143261
* Get a dummy target to allow for calculator mode while processing backticks.Johnny Chen2011-10-291-0/+4
| | | | | | | | | | | | | | This also helps break the infinite loop caused when target is null. So that we can have: $ /Volumes/data/lldb/svn/trunk/build/Debug/lldb (lldb) itob `0x123 - 0x321` 32 v 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0] (lldb) llvm-svn: 143260
* Fixed the continuation dumping of instructions to properly advance the Greg Clayton2011-10-282-17/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | previous address only by the number of bytes consumed by the disassembly: (lldb) x/4i 0x0000000100000ea9 0x100000ea9: 66 c7 45 fa 10 00 movw $16, -6(%rbp) 0x100000eaf: c7 45 f4 20 00 00 00 movl $32, -12(%rbp) 0x100000eb6: e8 47 00 00 00 callq 0x0000000100000f02 ; void f<nullptr_t>(nullptr_t) 0x100000ebb: 8b 45 fc movl -4(%rbp), %eax (lldb) 0x100000ebe: 48 83 c4 10 addq $16, %rsp 0x100000ec2: 5d popq %rbp 0x100000ec3: c3 ret 0x100000ec4: 90 nop (lldb) 0x100000ec5: 90 nop 0x100000ec6: 90 nop 0x100000ec7: 90 nop 0x100000ec8: 90 nop (lldb) 0x100000ec9: 90 nop 0x100000eca: 90 nop 0x100000ecb: 90 nop 0x100000ecc: 90 nop (lldb) 0x100000ecd: 90 nop 0x100000ece: 90 nop 0x100000ecf: 90 nop 0x100000ed0: 55 pushq %rbp llvm-svn: 143254
* As part of a general refactoring of ClangASTSource toSean Callanan2011-10-285-177/+185
| | | | | | | | | | | | | | | | | allow it to complete types on behalf of any AST context (including the "scratch" AST context associated with the target), I scrapped its role as intermediary between the Clang parser and ClangExpressionDeclMap, and instead made ClangExpressionDeclMap inherit from ClangASTSource. After this, I will migrate the functions that complete types and perform namespace lookups from ClangExpressionDeclMap to ClangASTSource. Ultimately ClangExpressionDeclMap's only responsiblity will be to look up variables and ensure that they are materialized and dematerialized correctly. llvm-svn: 143253
* Add an example customization directory which uses a binutils.py module to ↵Johnny Chen2011-10-284-1/+111
| | | | | | | | provide commands to print the binary representaion of an integer. llvm-svn: 143252
* Fixed the GDB format to allow the size and format characters to come in anyGreg Clayton2011-10-282-62/+29
| | | | | | | order. Also hooked up the new formats for instruction, hex float and address to the new formats. llvm-svn: 143251
* Added the ability for the target to specify Modules that will not be searchedJim Ingham2011-10-288-14/+194
| | | | | | | when setting breakpoints, but only if no module is specified. The Darwin platform uses this to not set breakpoints in dyld. llvm-svn: 143249
* Added support for C++0x char16_t and char32_t types.Greg Clayton2011-10-281-3/+20
| | | | llvm-svn: 143246
* Enabled the "printf" attribute on all debugserver logging functions and fixed Greg Clayton2011-10-2813-113/+103
| | | | | | the ensuing mayhem. llvm-svn: 143244
* Added the ability to have GDB formats appended to any command so you can doGreg Clayton2011-10-282-62/+112
| | | | | | | | | | | | | | | | | things like: (lldb) x/32xb 0x1000 "x" is an alias to "memory read", so this will actually turn into: (lldb) memory read --gdb-format=32xb 0x1000 This applies to all commands, so the GDB formats will work with "register read", "frame variable", "target variable" and others. All commands that can accept formats, counts and sizes have been modified to support the "--gdb-format" option. llvm-svn: 143230
* Remove extra newline in the docstring.Johnny Chen2011-10-281-4/+2
| | | | llvm-svn: 143228
* Added support for the C++Ox "nullptr_t" type.Greg Clayton2011-10-282-0/+12
| | | | llvm-svn: 143225
* Add bench entries.Johnny Chen2011-10-281-0/+18
| | | | llvm-svn: 143210
* Fix a typo.Johnny Chen2011-10-281-1/+1
| | | | llvm-svn: 143207
* Bumping Xcode project version in mainline to match the latest build that wasGreg Clayton2011-10-283-22/+22
| | | | | | submitted. llvm-svn: 143199
* Added a bunch of logging to CompleteType for TagDeclsSean Callanan2011-10-282-8/+37
| | | | | | and ObjCInterfaceDecls. llvm-svn: 143181
* Python does some bad things to the signal masks in the current process and Greg Clayton2011-10-283-4/+27
| | | | | | | | then we spawn child processes (debugserver, etc) and those bad settings get inherited. We stop this from happening by correctly mucking with the posix spawn attributes. llvm-svn: 143176
* Grab the address of the breakpoint site for the StopInfoBreakpoint so ifJim Ingham2011-10-281-3/+21
| | | | | | | it gets deleted before GetDescription is called we still at least know where it was. llvm-svn: 143175
* Fix up how we shut down the communication with debugserver so we don't rely onJim Ingham2011-10-281-12/+4
| | | | | | debugserver being responsive to shut down. llvm-svn: 143174
* Add a binutils.py which contains Python functions for displaying bit ↵Johnny Chen2011-10-281-0/+53
| | | | | | representation of numbers. llvm-svn: 143173
* Print out the version of the locally built 'lldb' binary, not the one found ↵Johnny Chen2011-10-281-3/+2
| | | | | | in your PATH env variable. llvm-svn: 143170
* This benchmark is meant to run the locally built 'lldb' binary, not the ↵Johnny Chen2011-10-281-1/+1
| | | | | | binary on the PATH env variable. llvm-svn: 143169
* Fixed a leak in the LLVM disassembler where theSean Callanan2011-10-271-1/+7
| | | | | | | | InstructionLLVM class dropped its instruction handle on the floor instead of releasing it correctly. llvm-svn: 143156
* <rdar://problem/10357230>Greg Clayton2011-10-271-1/+11
| | | | | | | | Fixed an issue where async packets were incurring a delay even though they were sent correctly. We now properly broadcast the private run state being resumed correctly. Also fixed logging to reflect what is happening. llvm-svn: 143154
* Added a function to the Host that gets a dummy targetSean Callanan2011-10-273-0/+27
| | | | | | | | for it, so that people who want to use LLDB as a calculator can run simple expressions without needing a target or process. llvm-svn: 143147
* Changed the way the expression parser handles variablesSean Callanan2011-10-274-20/+123
| | | | | | | | | | | | | | of reference types. Previously, such variables were materialized as references to those references, which caused undesried behavior in Clang and was useless anyway (the benefit of using references to variables is that it allows expressions to modify variables in place, but for references that's not required). Now we just materialize the references directly, which fixes a variety of expressions that use references. llvm-svn: 143137
* Add bench history entries.Johnny Chen2011-10-271-0/+21
| | | | llvm-svn: 143121
* Undo r142549 and r142543 which temporarily relax the expected substrings forJohnny Chen2011-10-273-14/+7
| | | | | | | watchpoint creation output due to wrong debug info from clang. It has been fixed. llvm-svn: 143118
* Added support for the new ".apple_objc" accelerator tables. These tables areGreg Clayton2011-10-2724-169/+352
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in the same hashed format as the ".apple_names", but they map objective C class names to all of the methods and class functions. We need to do this because in the DWARF the methods for Objective C are never contained in the class definition, they are scattered about at the translation unit level and they don't even have attributes that say the are contained within the class itself. Added 3 new formats which can be used to display data: eFormatAddressInfo eFormatHexFloat eFormatInstruction eFormatAddressInfo describes an address such as function+offset and file+line, or symbol + offset, or constant data (c string, 2, 4, 8, or 16 byte constants). The format character for this is "A", the long format is "address". eFormatHexFloat will print out the hex float format that compilers tend to use. The format character for this is "X", the long format is "hex float". eFormatInstruction will print out disassembly with bytes and it will use the current target's architecture. The format character for this is "i" (which used to be being used for the integer format, but the integer format also has "d", so we gave the "i" format to disassembly), the long format is "instruction". Mate the lldb::FormatterChoiceCriterion enumeration private as it should have been from the start. It is very specialized and doesn't belong in the public API. llvm-svn: 143114
* Liberalized the "id" check a little; now "id" canSean Callanan2011-10-271-3/+5
| | | | | | be found in namespaces. llvm-svn: 143096
* Disabled lookups for the Objective-C builtin type "id;"Sean Callanan2011-10-271-21/+26
| | | | | | the compiler should pick this type up automatically. llvm-svn: 143094
* Updated the grossly out of date status page.Greg Clayton2011-10-271-26/+16
| | | | llvm-svn: 143092
* Add display of min and max samples to Stopwatch's string representation.Johnny Chen2011-10-272-3/+24
| | | | llvm-svn: 143087
* Added an extra parameter to the object-checkerSean Callanan2011-10-273-25/+53
| | | | | | | | functions in the Objective-C language runtime that is set to the selector that is being passed to the object. llvm-svn: 143083
OpenPOWER on IntegriCloud