summaryrefslogtreecommitdiffstats
path: root/lldb/tools/debugserver/source/MacOSX
Commit message (Collapse)AuthorAgeFilesLines
...
* <rdar://problem/13019628>Han Ming Ong2013-01-162-2/+2
| | | | | | Prevent profiling from working on older debugserver. Just a simple renaming since the caller is prepared to handle the ‘unimplemented’ answer. llvm-svn: 172583
* Fix a logic error in the condition for a warning log message.Jim Ingham2013-01-142-2/+2
| | | | llvm-svn: 172442
* Use a more unique end delimiter. In any case, the thread names are hexified ↵Han Ming Ong2013-01-101-1/+1
| | | | | | when returning to lldb. llvm-svn: 172021
* <rdar://problem/12975489>Han Ming Ong2013-01-091-6/+5
| | | | | | | 1. Using mach port number, just like when inferior is paused. 2. Use key:value pair of thread used time instead of comma separated notation. llvm-svn: 172012
* <rdar://problem/12602653> Jason Molenda2013-01-051-0/+3
| | | | | | | | | | | | Add unconditional logging messages to every place in debugserver where we send a SIGKILL signal or do a ptrace PT_KILL call to terminate the inferior process. When the debuggee is silently killed off, the console logging from debugserver can disambiguate whether debugserver killed off the process because it failed to completely set it up, becuase it was told to (via the "k" packet), or if some external daemon killed it. llvm-svn: 171606
* <rdar://problem/12890948>Han Ming Ong2012-12-171-11/+16
| | | | | | Send thread name using hex encoding. llvm-svn: 170370
* <rdar://problem/12890901>Han Ming Ong2012-12-171-22/+41
| | | | | | Capturing thread name during profiling. llvm-svn: 170312
* <rdar://problem/12780259>Han Ming Ong2012-11-294-24/+22
| | | | | | | Prevent async and sync calls to get profile data from stomping on each other. At the same time, don't use '$' as end delimiter per chunk of profile data. llvm-svn: 168948
* <rdar://problem/12759744> Provide physical memory distribution as part of ↵Han Ming Ong2012-11-273-9/+146
| | | | | | | | profile data Make use of unix system calls to provide physical memory usage profile data. llvm-svn: 168720
* Han Ming's commit in r168228 had a bunch of 4-space tabsJason Molenda2012-11-173-137/+137
| | | | | | | in the source files. Expand to spaces. No content changes, just whitespace. llvm-svn: 168238
* <rdar://problem/12720514> Sub-TLF: Provide service to profile the inferiorHan Ming Ong2012-11-176-1/+450
| | | | | | This allows client to query profiling states on the inferior. llvm-svn: 168228
* Resolve any bundle paths we are given when the specified executable is a bundle.Greg Clayton2012-10-312-3/+19
| | | | llvm-svn: 167175
* <rdar://problem/12042500>Greg Clayton2012-10-111-1/+3
| | | | | | Fixed an issue where we would try to launch an application twice and the second failure would cover up the first. llvm-svn: 165756
* Fix build warnings.Greg Clayton2012-10-111-2/+2
| | | | llvm-svn: 165755
* Stop using the "%z" size_t modifier and cast all size_t values to uint64_t. ↵Greg Clayton2012-09-186-42/+42
| | | | | | Some platforms don't support this modification. llvm-svn: 164148
* Add a call to "sync" a thread state before checkpointing registers in ↵Jim Ingham2012-07-253-3/+17
| | | | | | | | | | | preparation for calling functions. This is necessary on Mac OS X, since bad things can happen if you set the registers of a thread that's sitting in a kernel trap. <rdar://problem/11145013> llvm-svn: 160756
* Use a more efficient API to tell if a process belongs to springboard or not.Jim Ingham2012-07-241-22/+2
| | | | llvm-svn: 160655
* Ran the static analyzer on the codebase and found a few things.Greg Clayton2012-07-173-18/+17
| | | | llvm-svn: 160338
* <rdar://problem/11679380> Make sure we do not fallback to software stepping ↵Enrico Granata2012-06-281-47/+9
| | | | | | when hardware stepping should work but fails to get enabled. Also removing dead code paths llvm-svn: 159322
* DNBLogThreadedIf already inserts a newlineFilipe Cabecinhas2012-06-221-1/+1
| | | | llvm-svn: 158995
* rdar://problem/11390100Johnny Chen2012-06-111-15/+18
| | | | | | debugserver needs to be able to posix_spawn debugging apps that have ".app" in their path that aren't bundles llvm-svn: 158327
* Properly initialize the member fields used for hardware watchpoint ↵Johnny Chen2012-06-022-2/+6
| | | | | | transaction management. llvm-svn: 157878
* rdar://problem/11320188Johnny Chen2012-06-017-13/+135
| | | | | | | | | Designate MachThreadList as a transaction coordinator when doing Enable/DisableHardwareWatchpoint on the list of threads. In case the operation (iterating on the threads and doing enable/disable) fails in the middle, we rollback the already enabled/disabled threads to their checkpointed states. When all the threads succeed in enable/disable, we ask each thread to finsih the transaction and commit the change of the debug state. llvm-svn: 157858
* For hardware watchpoint enable/disable, in case the kernel call to set the ↵Johnny Chen2012-05-312-1/+13
| | | | | | revised debug state fails, we need to recover the local cache to the previous known state. llvm-svn: 157778
* Add the capability to display the number of supported hardware watchpoints ↵Johnny Chen2012-05-236-0/+27
| | | | | | | | | to the "watchpoint list" command. Add default Process::GetWatchpointSupportInfo() impl which returns an error of "not supported". Add "qWatchpointSupportInfo" packet to the gdb communication layer to support this, and modify TestWatchpointCommands.py to test it. llvm-svn: 157345
* Patch from Filipe Cabecinhas.Greg Clayton2012-04-261-1/+0
| | | | llvm-svn: 155641
* Suspend program threads before sending the SIGSTOP & resuming, so other ↵Jim Ingham2012-04-252-5/+9
| | | | | | | | threads won't get into trouble while we are waiting for the SIGSTOP. rdar://problem/11174834 llvm-svn: 155560
* Fix a typo.Johnny Chen2012-03-231-1/+1
| | | | llvm-svn: 153301
* Make arm debugserver handle setting a watchpoint on, for example, ↵Johnny Chen2012-03-232-39/+81
| | | | | | | | | (uint64_t)variable. We do this by delegating to two available Watchpoint Register Pairs (wvr, wcr). With each pair handling the 4 bytes of (uint64_t)variable. llvm-svn: 153300
* Previous check-ins allow to hit the arm hardware watchpoint, with a ↵Johnny Chen2012-03-222-56/+52
| | | | | | | | | | | | | | workaound to handle the issue that the inferior cannot execute past the watchpoint-triggering instruction. The solution is disable the watchpoint before resuming the inferior and make it hardware single step; when the inferior stops again due to single step, re-enable the watchpoint and disable the single step to make the inferior able to continue again without obstacle. rdar://problem/9667960 llvm-svn: 153273
* Fixed a bug with the r153228 check-in earlier today in that the cached ↵Johnny Chen2012-03-222-10/+14
| | | | | | | | watchpoint member variables were not reset appropriately. llvm-svn: 153239
* WIP snapshot of hardware watchpoints for arm. A simple watchpoint has ↵Johnny Chen2012-03-222-27/+140
| | | | | | | | | | | | | | triggered. However, the debugserver cannot get past the instruction which triggered the watchpoint. So a workaround is in place for the time being which disables the triggered watchpoint before resuming. Lots of commented out printf's remain in the source which needs to be cleaned up. WIP rdar://problem/9667960 llvm-svn: 153228
* <rdar://problem/10434005>Greg Clayton2012-03-141-2/+1
| | | | | | | Prepare LLDB to be built with C++11 by hiding all accesses to std::tr1 behind macros that allows us to easily compile for either C++. llvm-svn: 152698
* <rdar://problem/11030692>Greg Clayton2012-03-121-40/+34
| | | | | | SBProcess::PutSTDIN() was not working for a few builds on darwin when using debugserver. This is now fixed. llvm-svn: 152569
* Make debugserver quieter about memory read errors.Jim Ingham2012-03-091-3/+1
| | | | | | <rdar://problem/10681220> llvm-svn: 152438
* <rdar://problem/11007934> Greg Clayton2012-03-083-9/+14
| | | | | | | | On darwin, if child process of process being debugged dies due to mach exception, the debugged process will die. debugserver now only handles the mach exceptions for the task being debugged. llvm-svn: 152291
* <rdar://problem/10840355>Greg Clayton2012-03-061-4/+4
| | | | | | Fixed STDERR to not be opened as readable. Also cleaned up some of the code that implemented the file actions as some of the code was using the wrong variables, they now use the right ones (in for stdin, out for stdout, err for stderr). llvm-svn: 152102
* <rdar://problem/10986692>Greg Clayton2012-03-063-8/+29
| | | | | | Safeguard against building on next OS and run on current OS. llvm-svn: 152077
* <rdar://problem/10963899>Greg Clayton2012-03-011-3/+29
| | | | | | | Allow debugserver to be built on a newer kernel and still allow debugging on older kernels. llvm-svn: 151827
* Newly created threads are to inherit from the global debug state of the process.Johnny Chen2012-02-241-1/+11
| | | | llvm-svn: 151393
* 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
* 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
* Change #ifdef markers around lockdown and SpringBoardJason Molenda2012-02-223-17/+15
| | | | | | | calls to dpeend on WITH_SPRINGBOARD and WITH_LOCKDOWN instead of __arm__. Add an RNBSocket::useFD method. llvm-svn: 151119
* Remove a ton of implicit narrowing conversions for C++11 compatibility.Benjamin Kramer2012-02-213-169/+169
| | | | llvm-svn: 151071
* Snapshot of initial work for ARM watchpoint support on the debugserver.Johnny Chen2012-01-112-1/+129
| | | | | | It is incomplete and untested; passes the compilation only. llvm-svn: 147901
* Disable ARMDisassembler.framework support which was used for software single ↵Greg Clayton2012-01-102-4/+25
| | | | | | stepping. llvm-svn: 147886
* Check the return value of GetBasicInfo before dereferencing it. ↵Jim Ingham2012-01-101-2/+7
| | | | | | <rdar://problem/10568492> llvm-svn: 147883
* Always return a valid answer for qMemoryRegionInfo if the packet is supported.Greg Clayton2011-12-124-55/+71
| | | | | | | | | We will return a valid range when possible and omit the "permissions" key when the memory is not readable, writeable or executeable. This will help us know the difference between an error back from this packet and unsupported, from just "this address isn't in a valid region". llvm-svn: 146394
* Don't spam warnings about not being able to read memory at 0x0.Jim Ingham2011-12-091-1/+4
| | | | llvm-svn: 146271
* Move CPUHasAVX() prototype out of an #ifdef block of code.Jason Molenda2011-12-081-2/+2
| | | | llvm-svn: 146198
OpenPOWER on IntegriCloud