| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
| |
Prevent profiling from working on older debugserver. Just a simple renaming since the caller is prepared to handle the ‘unimplemented’ answer.
llvm-svn: 172583
|
|
|
|
| |
llvm-svn: 172442
|
|
|
|
|
|
| |
when returning to lldb.
llvm-svn: 172021
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
Send thread name using hex encoding.
llvm-svn: 170370
|
|
|
|
|
|
| |
Capturing thread name during profiling.
llvm-svn: 170312
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
profile data
Make use of unix system calls to provide physical memory usage profile data.
llvm-svn: 168720
|
|
|
|
|
|
|
| |
in the source files. Expand to spaces. No content changes,
just whitespace.
llvm-svn: 168238
|
|
|
|
|
|
| |
This allows client to query profiling states on the inferior.
llvm-svn: 168228
|
|
|
|
| |
llvm-svn: 167175
|
|
|
|
|
|
| |
Fixed an issue where we would try to launch an application twice and the second failure would cover up the first.
llvm-svn: 165756
|
|
|
|
| |
llvm-svn: 165755
|
|
|
|
|
|
| |
Some platforms don't support this modification.
llvm-svn: 164148
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
llvm-svn: 160655
|
|
|
|
| |
llvm-svn: 160338
|
|
|
|
|
|
| |
when hardware stepping should work but fails to get enabled. Also removing dead code paths
llvm-svn: 159322
|
|
|
|
| |
llvm-svn: 158995
|
|
|
|
|
|
| |
debugserver needs to be able to posix_spawn debugging apps that have ".app" in their path that aren't bundles
llvm-svn: 158327
|
|
|
|
|
|
| |
transaction management.
llvm-svn: 157878
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
revised debug state fails, we need to recover the local cache to the previous known state.
llvm-svn: 157778
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
llvm-svn: 155641
|
|
|
|
|
|
|
|
| |
threads won't get into trouble while we are waiting for the SIGSTOP.
rdar://problem/11174834
llvm-svn: 155560
|
|
|
|
| |
llvm-svn: 153301
|
|
|
|
|
|
|
|
|
| |
(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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
watchpoint
member variables were not reset appropriately.
llvm-svn: 153239
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
SBProcess::PutSTDIN() was not working for a few builds on darwin when using debugserver. This is now fixed.
llvm-svn: 152569
|
|
|
|
|
|
| |
<rdar://problem/10681220>
llvm-svn: 152438
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
Safeguard against building on next OS and run on current OS.
llvm-svn: 152077
|
|
|
|
|
|
|
| |
Allow debugserver to be built on a newer kernel and still allow debugging on
older kernels.
llvm-svn: 151827
|
|
|
|
| |
llvm-svn: 151393
|
|
|
|
|
|
|
|
| |
entry" field
of the DSCR to check whether it was because of watchpoint occurred.
llvm-svn: 151333
|
|
|
|
|
|
| |
select mask for WCR.
llvm-svn: 151305
|
|
|
|
|
|
|
| |
calls to dpeend on WITH_SPRINGBOARD and WITH_LOCKDOWN
instead of __arm__. Add an RNBSocket::useFD method.
llvm-svn: 151119
|
|
|
|
| |
llvm-svn: 151071
|
|
|
|
|
|
| |
It is incomplete and untested; passes the compilation only.
llvm-svn: 147901
|
|
|
|
|
|
| |
stepping.
llvm-svn: 147886
|
|
|
|
|
|
| |
<rdar://problem/10568492>
llvm-svn: 147883
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
llvm-svn: 146271
|
|
|
|
| |
llvm-svn: 146198
|