summaryrefslogtreecommitdiffstats
path: root/lldb/tools/debugserver/source
Commit message (Collapse)AuthorAgeFilesLines
...
* <rdar://problem/12720514> Sub-TLF: Provide service to profile the inferiorHan Ming Ong2012-11-1714-9/+612
| | | | | | This allows client to query profiling states on the inferior. llvm-svn: 168228
* Added a posix_spawn based launchd plist for always using posix_spawn to ↵Greg Clayton2012-11-081-0/+16
| | | | | | launch programs. llvm-svn: 167563
* <rdar://problem/12647273>Greg Clayton2012-11-062-57/+166
| | | | | | Added the ability to get the full process list when using the --applist option in debugserver. llvm-svn: 167502
* Fix an error message in debugserver so it doesn't print "Unable toJason Molenda2012-11-011-1/+3
| | | | | | | launch process (null)" because we changed argv while doing argument parsing. llvm-svn: 167202
* Switch from using KERN_PROCARGS2 to get the path to the executed process to ↵Jim Ingham2012-11-011-11/+14
| | | | | | | | 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
* Added the plists to the debugserver project and fixed the labels for the new ↵Greg Clayton2012-10-312-2/+2
| | | | | | plists. llvm-svn: 167183
* More launchd style plists.Greg Clayton2012-10-312-0/+27
| | | | llvm-svn: 167182
* Resolve any bundle paths we are given when the specified executable is a bundle.Greg Clayton2012-10-313-3/+36
| | | | llvm-svn: 167175
* Provide an SSL context ref in case SLL is needed for communication.Greg Clayton2012-10-131-1/+3
| | | | llvm-svn: 165856
* <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
* <rdar://problem/12219840>Greg Clayton2012-09-181-3/+20
| | | | | | Don't leak mach ports when calling "mach_thread_self()". llvm-svn: 164152
* Stop using the "%z" size_t modifier and cast all size_t values to uint64_t. ↵Greg Clayton2012-09-1811-53/+53
| | | | | | Some platforms don't support this modification. llvm-svn: 164148
* <rdar://problem/11935492>Greg Clayton2012-09-111-0/+7
| | | | | | 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
* Add a call to "sync" a thread state before checkpointing registers in ↵Jim Ingham2012-07-257-3/+68
| | | | | | | | | | | 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-242-44/+6
| | | | llvm-svn: 160655
* Add "vAttachOrWait" to debugserver, so you can implement "attach to the ↵Jim Ingham2012-07-205-38/+68
| | | | | | process if it exists OR wait for it" without race conditions. Use that in lldb. llvm-svn: 160578
* <rdar://problem/11908082>Greg Clayton2012-07-191-5/+46
| | | | | | 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
* Ran the static analyzer on the codebase and found a few things.Greg Clayton2012-07-176-47/+59
| | | | llvm-svn: 160338
* Fix an off by one error when handling a packet where our read buffer size ↵Jim Ingham2012-07-161-2/+2
| | | | | | | | | | truncates the first chunk of the packet between the two chars representing the checksum. <rdar://problem/11882074> llvm-svn: 160310
* <rdar://problem/11782789> Changes to the watchpoint implementation on ARM so ↵Enrico Granata2012-07-131-0/+3
| | | | | | 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
* Spelling fixes.Greg Clayton2012-06-292-2/+2
| | | | llvm-svn: 159466
* <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-018-13/+148
| | | | | | | | | 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-2310-0/+70
| | | | | | | | | 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
* Change lockdown API use in RNBSocket::ConnectToService.Jason Molenda2012-05-161-3/+3
| | | | | | <rdar://problem/10800927> llvm-svn: 156883
* Sanity check the return value from SBSCopyApplicationDisplayIdentifiers() ↵Johnny Chen2012-05-101-1/+2
| | | | | | | | before calling CFArrayGetCount() on it. rdar://problem/11331867 llvm-svn: 156562
* <rdar://problem/11358639>Greg Clayton2012-05-081-6/+17
| | | | | | | | 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
* Patch from Filipe Cabecinhas.Greg Clayton2012-04-261-1/+0
| | | | llvm-svn: 155641
* Patch from Filipe Cabecinhas.Greg Clayton2012-04-261-2/+2
| | | | llvm-svn: 155640
* 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
* Added a new packet to our GDB remote protocol:Greg Clayton2012-04-102-20/+73
| | | | | | | | 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
* Fixed the C++11 #defines that wrap std::weak_ptr to actually use std::weak_ptr.Greg Clayton2012-04-041-1/+1
| | | | llvm-svn: 154041
* 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-144-6/+17
| | | | | | | 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
* Send an "OK" response to the "D" (detach) packet.Jason Molenda2012-03-131-2/+1
| | | | | | | | v. http://sourceware.org/gdb/current/onlinedocs/gdb/Packets.html#Packets the detach packet is supposed to send a reply. llvm-svn: 152671
* Pull in another plist from the old debugserver project.Jason Molenda2012-03-131-0/+15
| | | | | | Switch default compiler to clang. llvm-svn: 152600
* <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
OpenPOWER on IntegriCloud