summaryrefslogtreecommitdiffstats
path: root/lldb
Commit message (Collapse)AuthorAgeFilesLines
* Patch from Filipe Cabecinhas!Johnny Chen2012-02-292-3/+16
| | | | | | Attached is a small python fix to save the current stout and std err when starting a python session, then diverting them (as it was before), and restoring the previous values afterwards. Otherwise, a python script could suddenly find itself without output. llvm-svn: 151693
* rdar://problem/10652076Johnny Chen2012-02-2911-474/+560
| | | | | | | | | | | | | | | | | | | Initial step -- infrastructure change -- to fix the bug. Change the RegisterInfo data structure to contain two additional fields (uint32_t *value_rges and uint32_t *invalidate_regs) to facilitate architectures which have register mapping. Update all existing RegsiterInfo arrays to have two extra NULL's (the additional fields) in each row, GDBRemoteRegisterContext.cpp is modified to add d0-d15 and q0-q15 register info entries which take advantage of the value_regs field to specify the containment relationship: d0 -> (s0, s1) ... d15 -> (s30, s31) q0 -> (d0, d1) ... q15 -> (d30, d31) llvm-svn: 151686
* <rdar://10950312>Han Ming Ong2012-02-291-1/+10
| | | | | | Need to GetProcess() to set the uid of the process to attach. llvm-svn: 151679
* <rdar://10950196>Han Ming Ong2012-02-291-4/+12
| | | | | | Returns true when there is any info retrieved. llvm-svn: 151678
* Fixed a crasher for remote device debugging.Han Ming Ong2012-02-291-1/+1
| | | | llvm-svn: 151677
* Fix the linux build now that we link against the Linux and FreeBSD platforms.Greg Clayton2012-02-282-17/+17
| | | | llvm-svn: 151642
* Forgot to check in this file with r151593.Johnny Chen2012-02-281-0/+2
| | | | llvm-svn: 151640
* Extended the IR interpreter to support symbolsSean Callanan2012-02-281-4/+16
| | | | | | that have valid load addresses. llvm-svn: 151636
* Add one more define for sdk==iphoneos.Jason Molenda2012-02-281-0/+3
| | | | llvm-svn: 151606
* <rdar://problem/10942472>Han Ming Ong2012-02-281-40/+41
| | | | | | Allows the debugger to put a more sensible prompt when debugging as root. llvm-svn: 151605
* Add more test scenarios for 'memory read': one for a successful command ↵Johnny Chen2012-02-271-0/+8
| | | | | | | | execution and one for another error message. llvm-svn: 151593
* Modify the expected error message accordingly after the recent change to ↵Johnny Chen2012-02-271-2/+2
| | | | | | DataExtractor.cpp. llvm-svn: 151587
* During the test case tearDown(), give it one final blow to make sure the ↵Johnny Chen2012-02-271-0/+2
| | | | | | | | child process spawned by pexpect is terminated. Fix the issue of many '(lldb)' zombie processes observed by Jim. llvm-svn: 151583
* <rdar://problem/10017623> Greg Clayton2012-02-272-29/+43
| | | | | | | | | | | Fixed an error where if we tried to format a ValueObject using a format that was incorrect for a variable, then it would set ValueObject::m_error to an error state and stop the value from being able to be updated. We now leave m_error alone and only let the update value code change that. Any errors in formatting will return a valid value as C string that contains an error string. This lets us then modify the format and redisplay without any issues. llvm-svn: 151581
* Fixed an overly-specific testcase that dependedSean Callanan2012-02-271-2/+1
| | | | | | on libm being loaded. llvm-svn: 151565
* Moved byte-size computation out of aSean Callanan2012-02-271-127/+130
| | | | | | | | startDefinition() ... endDefinition() block, preventing crashes where the byte size of a not-yet-complete type was being computed. llvm-svn: 151546
* Harden the checks on the type returned from theSean Callanan2012-02-271-0/+5
| | | | | | | AST importer because we're seeing occasional crashes. llvm-svn: 151541
* Enabled the PlatformLinux and PlatforFreeBSD on MacOSX so they can be usedGreg Clayton2012-02-275-29/+49
| | | | | | | | | | | | and also so we don't break them with our code changes. The _only_ plug-ins that should be #ifdef'ed out and not compiled in LLDB are those that only work when running natively on the host system. This fixed bot the PlatformLinux and PlatformFreeBSD build breakages that were due to ModuleSpec changes. llvm-svn: 151539
* Added the POSIX-DYLD as a plug-in in the darwin build in the Xcode projectGreg Clayton2012-02-276-13/+56
| | | | | | | | | so that we don't break it with code changes. After doing this I was able to fix the POSIX-DYLD plug-in so that it builds after recent ModuleSpec changes. llvm-svn: 151536
* Include stddef.h for ptrdiff_t, GCC 4.6 doesn't include it implicitly.Benjamin Kramer2012-02-271-0/+1
| | | | llvm-svn: 151535
* Remove redundant declaration.Johnny Chen2012-02-271-3/+0
| | | | | | Patch from Dmitry Vyukov <dvyukov@google.com>! llvm-svn: 151534
* Patch from Pawel Worach to make FreeBSD work again after ModuleSpec changes.Greg Clayton2012-02-275-44/+38
| | | | llvm-svn: 151532
* Made a ModuleSpec class in Module.h which can specify a module using one orGreg Clayton2012-02-2627-564/+575
| | | | | | | | | | | | | | | | | | more of the local path, platform path, associated symbol file, UUID, arch, object name and object offset. This allows many of the calls that were GetSharedModule to reduce the number of arguments that were used in a call to these functions. It also allows a module to be created with a ModuleSpec which allows many things to be specified prior to any accessors being called on the Module class itself. I was running into problems when adding support for "target symbol add" where you can specify a stand alone debug info file after debugging has started where I needed to specify the associated symbol file path and if I waited until after construction, the wrong symbol file had already been located. By using the ModuleSpec it allows us to construct a module with as little or as much information as needed and not have to change the parameter list. llvm-svn: 151476
* Avoid a throw in case we init a lldb_private::Address with an invalid SectionSP.Greg Clayton2012-02-251-1/+3
| | | | llvm-svn: 151439
* <rdar://problem/9886712>Greg Clayton2012-02-2511-90/+645
| | | | | | | | Added a dedicated platform for the iOS simulator. This helps us to find the correct files for a simulator binary before running and helps us select the right arch (i386 only) for files when we load them. llvm-svn: 151436
* Make the Watchpoint IDs unique per target, not across targets as before.Johnny Chen2012-02-257-76/+182
| | | | | | Now Each newly created target has its Watchpoint IDs as 1, 2, 3 ... llvm-svn: 151435
* Bumped Xcode project version to lldb-117 and debugserver-168.Greg Clayton2012-02-255-24/+24
| | | | llvm-svn: 151422
* Fix build for case sensitive file systems.Greg Clayton2012-02-251-6/+6
| | | | llvm-svn: 151421
* <rdar://problem/3535148>Han Ming Ong2012-02-2518-71/+1168
| | | | | | Added ability to debug root processes on OS X. This uses XPC service that is available on Lion and above only. llvm-svn: 151419
* Added some missing accessors to the SBAttachInfo for user and group IDGreg Clayton2012-02-243-0/+72
| | | | | | getting, setting, and checking. llvm-svn: 151408
* Create an additional watchpoint during the test run and verify that the ↵Johnny Chen2012-02-241-1/+12
| | | | | | watchpoint fired has the expected watchpoint id. llvm-svn: 151404
* Fixed a crasher that was happening after making ObjectFile objects have aGreg Clayton2012-02-243-67/+71
| | | | | | | | | weak reference back to the Module. We were crashing when trying to make a memory object file since it was trying to get the object in the Module constructor before the "Module *" had been put into a shared pointer, and the module was trying to initialize a weak pointer back to it. llvm-svn: 151397
* Newly created threads are to inherit from the global debug state of the process.Johnny Chen2012-02-241-1/+11
| | | | llvm-svn: 151393
* Fixed the launching code when using the new SBLaunchInfo.Greg Clayton2012-02-243-109/+30
| | | | llvm-svn: 151392
* Reworking the ObjC formatters test case not to test everything in one huge ↵Enrico Granata2012-02-241-13/+97
| | | | | | code block - better for maintenance and debugging llvm-svn: 151390
* Fixing an if condition which was causing issues in detecting the correct ↵Enrico Granata2012-02-241-1/+1
| | | | | | runtime version llvm-svn: 151388
* Makefiles for new mach-core directory.Johnny Chen2012-02-243-1/+17
| | | | | | Patch from dawn@burble.org! llvm-svn: 151375
* Patch from Filipe Cabecinhas fixing a typo in the "lldb unwind" log output.Jim Ingham2012-02-241-1/+1
| | | | llvm-svn: 151370
* Added the new way we will eventually do all attaches and launches. First clientsGreg Clayton2012-02-247-5/+941
| | | | | | | | | | | | | | | | | | | | | will fill out either a SBLaunchInfo or SBAttachInfo class, then call: SBProcess SBTarget::Launch (SBLaunchInfo &, SBError &); SBProcess SBTarget::Attach (SBAttachInfo &, SBError &); The attach is working right now and allows the ability to set many filters such as the parent process ID, the user/group ID, the effective user/group ID, and much more. The launch is not yet working, but I will get this working soon. By changing our launch and attach calls to take an object, it allows us to add more capabilities to launching and attaching without having to have launch and attach functions that take more and more arguments. Once this is all working we will deprecated the older launch and attach fucntions and eventually remove them. llvm-svn: 151344
* <rdar://problem/10103468>Greg Clayton2012-02-2490-1027/+1357
| | | | | | | | | | | | | | | | | | | | | | | | | I started work on being able to add symbol files after a debug session had started with a new "target symfile add" command and quickly ran into problems with stale Address objects in breakpoint locations that had lldb_private::Section pointers into modules that had been removed or replaced. This also let to grabbing stale modules from those sections. So I needed to thread harded the Address, Section and related objects. To do this I modified the ModuleChild class to now require a ModuleSP on initialization so that a weak reference can created. I also changed all places that were handing out "Section *" to have them hand out SectionSP. All ObjectFile, SymbolFile and SymbolVendors were inheriting from ModuleChild so all of the find plug-in, static creation function and constructors now require ModuleSP references instead of Module *. Address objects now have weak references to their sections which can safely go stale when a module gets destructed. This checkin doesn't complete the "target symfile add" command, but it does get us a lot clioser to being able to do such things without a high risk of crashing or memory corruption. llvm-svn: 151336
* Add a class method HasWatchpointOccurred() to inspect the "method of debug ↵Johnny Chen2012-02-242-4/+32
| | | | | | | | entry" field of the DSCR to check whether it was because of watchpoint occurred. llvm-svn: 151333
* commenting parts of std::map test case which would make the test case fail ↵Enrico Granata2012-02-231-8/+20
| | | | | | when using TOT clang, but succeed on older compiler releases llvm-svn: 151309
* Updated LLVM to take some fixes that make theSean Callanan2012-02-233-22/+10
| | | | | | | | | | | Intel disassembler usable. Also flipped the switch: we are now exclusively using Disassembler.h instead of EnhancedDisassembly.h for all disassembly in LLDB. llvm-svn: 151306
* Add comments about address word offset and the calculation of byte address ↵Johnny Chen2012-02-231-2/+18
| | | | | | select mask for WCR. llvm-svn: 151305
* fixing a syntax error with objc_runtime.pyEnrico Granata2012-02-231-3/+45
| | | | llvm-svn: 151304
* This patch provides a set of formatters for most of the commonly used Cocoa ↵Enrico Granata2012-02-231-0/+0
| | | | | | | | | | classes. The formatter for NSString is an improved version of the one previously shipped as an example, the others are new in design and implementation. A more robust and OO-compliant Objective-C runtime wrapper is provided for runtime versions 1 and 2 on 32 and 64 bit. The formatters are contained in a category named "AppKit", which is not enabled at startup. llvm-svn: 151301
* This patch provides a set of formatters for most of the commonly used Cocoa ↵Enrico Granata2012-02-2317-0/+2928
| | | | | | | | | | classes. The formatter for NSString is an improved version of the one previously shipped as an example, the others are new in design and implementation. A more robust and OO-compliant Objective-C runtime wrapper is provided for runtime versions 1 and 2 on 32 and 64 bit. The formatters are contained in a category named "AppKit", which is not enabled at startup. llvm-svn: 151300
* This patch provides a set of formatters for most of the commonly used Cocoa ↵Enrico Granata2012-02-238-417/+774
| | | | | | | | | | classes. The formatter for NSString is an improved version of the one previously shipped as an example, the others are new in design and implementation. A more robust and OO-compliant Objective-C runtime wrapper is provided for runtime versions 1 and 2 on 32 and 64 bit. The formatters are contained in a category named "AppKit", which is not enabled at startup. llvm-svn: 151299
* Bumping version to lldb-116.Jason Molenda2012-02-232-16/+16
| | | | llvm-svn: 151293
* Make a nested if .. if .. else block nesting more explicit with some curly ↵Jason Molenda2012-02-231-0/+6
| | | | | | braces. llvm-svn: 151292
OpenPOWER on IntegriCloud