| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
| |
This allows client to query profiling states on the inferior.
llvm-svn: 168228
|
|
|
|
|
|
| |
launch programs.
llvm-svn: 167563
|
|
|
|
|
|
| |
Added the ability to get the full process list when using the --applist option in debugserver.
llvm-svn: 167502
|
|
|
|
|
|
|
| |
launch process (null)" because we changed argv while doing argument
parsing.
llvm-svn: 167202
|
|
|
|
|
|
|
|
| |
proc_pidpath. The former was flakey, and the whole point of libproc is to protect us from potential flakiness at that level...
<rdar://problem/12594781>
llvm-svn: 167194
|
|
|
|
|
|
| |
plists.
llvm-svn: 167183
|
|
|
|
| |
llvm-svn: 167182
|
|
|
|
| |
llvm-svn: 167175
|
|
|
|
| |
llvm-svn: 165856
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
Don't leak mach ports when calling "mach_thread_self()".
llvm-svn: 164152
|
|
|
|
|
|
| |
Some platforms don't support this modification.
llvm-svn: 164148
|
|
|
|
|
|
| |
Fixed an issue where if we call "Process::Destroy()" and the process is running, if we try to stop it and get "exited" back as the stop reason, we will still deliver the exited event.
llvm-svn: 163591
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
process if it exists OR wait for it" without race conditions. Use that in lldb.
llvm-svn: 160578
|
|
|
|
|
|
| |
Allow debugserver to match process names that are longer than MAXCOMLEN (16) characters. We do this by digging up argv[0] from another sysctl if the process name supplied is longer than 16 characters.
llvm-svn: 160487
|
|
|
|
| |
llvm-svn: 160338
|
|
|
|
|
|
|
|
|
|
| |
truncates the first chunk of the packet
between the two chars representing the checksum.
<rdar://problem/11882074>
llvm-svn: 160310
|
|
|
|
|
|
| |
that we single-step before stopping at the WP. This is necessary because on ARM the WP triggers before the opcode is actually executed, so we would be unable to continue since we would keep hitting the WP. We work around this by disabling the WP, single stepping and then putting the WP back in place.
llvm-svn: 160199
|
|
|
|
| |
llvm-svn: 159466
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
<rdar://problem/10800927>
llvm-svn: 156883
|
|
|
|
|
|
|
|
| |
before calling CFArrayGetCount() on it.
rdar://problem/11331867
llvm-svn: 156562
|
|
|
|
|
|
|
|
| |
Switch over to the "*-apple-macosx" for desktop and "*-apple-ios" for iOS triples.
Also make the selection process for auto selecting platforms based off of an arch much better.
llvm-svn: 156354
|
|
|
|
| |
llvm-svn: 155641
|
|
|
|
| |
llvm-svn: 155640
|
|
|
|
|
|
|
|
| |
threads won't get into trouble while we are waiting for the SIGSTOP.
rdar://problem/11174834
llvm-svn: 155560
|
|
|
|
|
|
|
|
| |
QListThreadsInStopReply
This GDB remote query command can enable added a "threads" key/value pair to all stop reply packets so that we always get a list of all threads in each stop reply packet. It increases performance if enabled (the reply to the "QListThreadsInStopReply" is "OK") by saving us from sending to command/reply pairs (the "qfThreadInfo" and "qsThreadInfo" packets), and also helps us keep the current process state up to date.
llvm-svn: 154380
|
|
|
|
| |
llvm-svn: 154041
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
v. http://sourceware.org/gdb/current/onlinedocs/gdb/Packets.html#Packets
the detach packet is supposed to send a reply.
llvm-svn: 152671
|
|
|
|
|
|
| |
Switch default compiler to clang.
llvm-svn: 152600
|
|
|
|
|
|
| |
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
|