summaryrefslogtreecommitdiffstats
path: root/lldb
Commit message (Collapse)AuthorAgeFilesLines
* Remove extra whitespace.Johnny Chen2011-06-061-1/+0
| | | | llvm-svn: 132692
* Created a std::string in the base StopInfo class for the description andGreg Clayton2011-06-045-12/+174
| | | | | | | cleaned up all base classes that had their own copy. Added a SetDescription accessor to the StopInfo class. llvm-svn: 132615
* Make sure we are ok to stop in a thread plan and have no stop reason forGreg Clayton2011-06-031-27/+32
| | | | | | | the thread we were running on (other thread crashed or had exceptional stop reason). llvm-svn: 132599
* Don't codesign with lldb_codesign for non MacOSX SDKs.Greg Clayton2011-06-031-4/+4
| | | | llvm-svn: 132597
* Add InferiorCallPOSIX.cpp/.h into the xcode project file to fix build error.Johnny Chen2011-06-031-0/+6
| | | | llvm-svn: 132594
* Fix some order-of-initialisation warningsPeter Collingbourne2011-06-032-6/+6
| | | | llvm-svn: 132588
* Implement RegisterContextLinux_x86_64::{Read,Write}AllRegisterValuesPeter Collingbourne2011-06-034-1/+118
| | | | llvm-svn: 132587
* Move SaveFrameZeroState and RestoreSaveFrameZero implementations to Thread ↵Peter Collingbourne2011-06-038-88/+29
| | | | | | base class llvm-svn: 132586
* Implement ProcessLinux::Do{Allocate,Deallocate}Memory using inferior ↵Peter Collingbourne2011-06-032-12/+34
| | | | | | mmap/munmap calls llvm-svn: 132585
* Move inferior mmap/munmap call code into their own functions in utility libPeter Collingbourne2011-06-033-154/+241
| | | | llvm-svn: 132584
* Disable MCJIT on non-Darwin platformsPeter Collingbourne2011-06-031-1/+4
| | | | | | | Currently the runtime dynamic linker lacks object file support for anything other than Mach-O. llvm-svn: 132583
* Scan dynamic symbol table of ELF object filesPeter Collingbourne2011-06-031-1/+1
| | | | llvm-svn: 132582
* Make a few minor changes/corrections to scripting Caroline Tice2011-06-031-12/+12
| | | | | | example on the web. llvm-svn: 132554
* Added Debugger::GetAsync{Output/Error}Stream, and use it to print parse ↵Jim Ingham2011-06-025-26/+50
| | | | | | errors when we go to run a breakpoint condition. llvm-svn: 132517
* Cleanup the sidebar and include a link to the new python scripting tutorial.Greg Clayton2011-06-021-2/+3
| | | | llvm-svn: 132515
* Add the web page for the 'Using Python Scripting toCaroline Tice2011-06-021-0/+570
| | | | | | Debug a Program in LLDB' example. llvm-svn: 132513
* Add source files for Python scripting example (coming soon).Caroline Tice2011-06-022-0/+318
| | | | llvm-svn: 132512
* Bail out if we have an invalid thumb instruction.Johnny Chen2011-06-021-2/+4
| | | | llvm-svn: 132511
* Turn the commented-out assert()'s into appropriate bail-out actions.Johnny Chen2011-06-021-2/+5
| | | | llvm-svn: 132507
* When emulating an ill-formed instruction, we should bail out instead of ↵Johnny Chen2011-06-022-70/+187
| | | | | | asserting and bringing down the whole process. llvm-svn: 132506
* Bumped Xcode project version for lldb-60.Greg Clayton2011-06-022-16/+16
| | | | llvm-svn: 132502
* Remove asserts that will crash LLDB. These should be changed to returnGreg Clayton2011-06-023-26/+29
| | | | | | | true/false in an extra boolean parameter and not cause the the binary that us using the LLDB framework to crash. llvm-svn: 132501
* Make sure we don't lose our stop reply packet in the case where the otherGreg Clayton2011-06-022-22/+7
| | | | | | GDB server doesn't support the LLDB specific qThreadStopInfo packet. llvm-svn: 132499
* Update the handle many of the packets that our current LLDB debugserverGreg Clayton2011-06-021-43/+91
| | | | | | | handles. Also fixed a case where the packet wouldn't be dumped if it returned the unimplemented packet. llvm-svn: 132498
* Use Py_InitializeEx(0) instead of Py_Initialize,Caroline Tice2011-06-021-1/+1
| | | | | | | to prevent Python from installing its own signal handlers. llvm-svn: 132492
* EmulateShiftReg() also accepts shifter type of SRType_ROR.Johnny Chen2011-06-021-1/+4
| | | | llvm-svn: 132484
* Create new class, InputReaderStack, to better handle Caroline Tice2011-06-025-23/+162
| | | | | | | mutexes around input readers and prevent deadlocking; modify Debugger to use the new class. llvm-svn: 132475
* Add comment about Thread::GetStatus(), which returns the number of frames shown.Johnny Chen2011-06-021-0/+1
| | | | llvm-svn: 132470
* Use the correct accessor on CXXRecordDecl to know when a C++ class is dynamic.Greg Clayton2011-06-021-1/+1
| | | | llvm-svn: 132449
* Turn off printing of command sent to the pexpect-spawned child process to ↵Johnny Chen2011-06-011-2/+2
| | | | | | make the script more robotic. llvm-svn: 132441
* If somebody has deleted the breakpoint while we are testing the condition, ↵Jim Ingham2011-06-011-11/+21
| | | | | | then just continue. llvm-svn: 132440
* Remove the "a.out" argument from somewhere on Greg's machine in the ↵Jim Ingham2011-06-011-7/+2
| | | | | | lldb-tool run scheme. llvm-svn: 132439
* Exercise the 'thread backtrace all' command instead of the currently 'thread ↵Johnny Chen2011-06-011-1/+1
| | | | | | | | backtrace' command. This serves as a regression test against rdar://problem/9530511. llvm-svn: 132438
* The 'thread backtrace all' logical branch had the if (thread->GetStatus()) ↵Johnny Chen2011-06-011-4/+4
| | | | | | | | condition inverted. rdar://problem/9530511 llvm-svn: 132435
* Make 'run-until-faulted.py' script more interesting by modifying the example ↵Johnny Chen2011-06-012-14/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | main.c program to seg fault randomly instead of deterministically. Example: [15:10:43] johnny:/Volumes/data/lldb/svn/trunk/utils/test $ clang -g main.c [15:10:46] johnny:/Volumes/data/lldb/svn/trunk/utils/test $ ./run-until-faulted.py -l $PWD/../../build/Debug/lldb -e a.out lldb command: /Volumes/data/lldb/svn/trunk/utils/test/../../build/Debug/lldb executable: a.out executable options: (lldb) sending 'file a.out' command... file a.out Current executable set to 'a.out' (x86_64). (lldb) sending 'process launch -- ' command... (iteration: 0) process launch -- Process 63630 launched: '/Volumes/data/lldb/svn/trunk/utils/test/a.out' (x86_64) Hello, fault! val=9 Better luck next time! Process 63630 exited with status = 0 (0x00000000) (lldb) sending 'process launch -- ' command... (iteration: 1) process launch -- Process 63633 launched: '/Volumes/data/lldb/svn/trunk/utils/test/a.out' (x86_64) Process 63633 exited with status = 0 (0x00000000) sending 'process launch -- ' command... (iteration: 2) Hello, fault! val=0 Better luck next time! (lldb) process launch -- Process 63637 launched: '/Volumes/data/lldb/svn/trunk/utils/test/a.out' (x86_64) Hello, fault! val=15 Better luck next time! Process 63637 exited with status = 0 (0x00000000) (lldb) sending 'process launch -- ' command... (iteration: 3) process launch -- Process 63640 launched: '/Volumes/data/lldb/svn/trunk/utils/test/a.out' (x86_64) Hello, fault! val=2 Better luck next time! Process 63640 exited with status = 0 (0x00000000) sending 'process launch -- ' command... (iteration: 4) (lldb) process launch -- Process 63643 launched: '/Volumes/data/lldb/svn/trunk/utils/test/a.out' (x86_64) Process 63643 stopped * thread #1: tid = 0x2d03, 0x0000000100000e93 a.out`main + 99 at main.c:11, stop reason = EXC_BAD_ACCESS (code=1, address=0x0) frame #0: 0x0000000100000e93 a.out`main + 99 at main.c:11 8 u_int32_t val = (arc4random() & 0x0f); 9 printf("val=%u\n", val); 10 if (val == 0x07) // Lucky 7 :-) -> 11 printf("Now segfault %d\n", *null_ptr); 12 else 13 printf("Better luck next time!\n"); 14 } (lldb) * thread #1: tid = 0x2d03, 0x0000000100000e93 a.out`main + 99 at main.c:11, stop reason = EXC_BAD_ACCESS (code=1, address=0x0) frame #0: 0x0000000100000e93 a.out`main + 99 at main.c:11 8 u_int32_t val = (arc4random() & 0x0f); 9 printf("val=%u\n", val); 10 if (val == 0x07) // Lucky 7 :-) -> 11 printf("Now segfault %d\n", *null_ptr); 12 else 13 printf("Better luck next time!\n"); 14 } Hello, fault! val=7 (lldb) llvm-svn: 132430
* Make it clear that the Python script modify-python-lldb.py is responsible ↵Johnny Chen2011-06-011-0/+8
| | | | | | | | | for post-processing the SWIG-generated lldb.py module by adding comments in the post-processed file in order to facilitate reading of the code. llvm-svn: 132417
* Fix comment.Johnny Chen2011-06-011-1/+1
| | | | llvm-svn: 132412
* Fix remaining Python issues leftover from my previous patch.Charles Davis2011-06-012-4/+15
| | | | | | | | | | | | | - The Swig post-processing scripts are now run. - edit-swig-python-wrapper-file.py has been modified so it can be run from the Makefile. - The issue that prompted me to pass -classic to swig is fixed by this, so -classic isn't passed anymore. Python shouldn't complain anymore about a missing method 'FindDebuggerByID' on the SBDebugger object whenever lldb is run. llvm-svn: 132383
* Fix out-dated module docstring for lldbtest.py. Also wrap some lldb ↵Johnny Chen2011-05-311-16/+25
| | | | | | | | attribute references inside a try-except block in case the test is not invoked through the dotest.py test driver. llvm-svn: 132372
* Move some comments to the docstrings.Johnny Chen2011-05-311-13/+5
| | | | llvm-svn: 132367
* Fix dynamic value objects to do the right thing when theGreg Clayton2011-05-311-17/+8
| | | | | | value fails to evaluate. llvm-svn: 132354
* Revert previous changes.Greg Clayton2011-05-301-11/+3
| | | | llvm-svn: 132308
* lldb-59.Greg Clayton2011-05-3019-144/+369
| | | | llvm-svn: 132304
* Disable dynamic types being on by default until kinks get worked out whenGreg Clayton2011-05-301-6/+6
| | | | | | | | | | | they don't update correctly. Currently if a variable is unavailable due to a register not being available in a higher frame or due to the PC value not being a valid location list value, "<unknown type>" will get displayed as the variable type. I am not sure what other things will fail, so I am disabling it for now just by letting the default enumeration value default to it being disabled. llvm-svn: 132303
* Protect the input reader stack with a recursive mutex.Greg Clayton2011-05-292-0/+8
| | | | llvm-svn: 132301
* Make sure if an enumeration "settings" value has a valid default setting inGreg Clayton2011-05-291-7/+9
| | | | | | | its definition, that the first enumeration doesn't always get used as the default. llvm-svn: 132289
* lldb-58Greg Clayton2011-05-292-16/+16
| | | | llvm-svn: 132281
* Don't have the debugger default to ignoring EOF. This is only what the driverGreg Clayton2011-05-296-3/+43
| | | | | | | | (or anything running in a terminal) wants. Not what a UI (Xcode) would want where it creates a debugger per debug window. The current code had an infinite loop after a debug session ended. llvm-svn: 132280
* lldb-57Greg Clayton2011-05-292-16/+16
| | | | llvm-svn: 132271
* Fixed an issue that could cause LLDB to spin indefinitely.Greg Clayton2011-05-291-0/+1
| | | | llvm-svn: 132270
OpenPOWER on IntegriCloud