Han Ming Ong
c9a35eb947
Use a more unique end delimiter. In any case, the thread names are hexified when returning to lldb.
...
llvm-svn: 172021
2013-01-10 00:04:49 +00:00
Han Ming Ong
95b604b276
<rdar://problem/12975489>
...
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
2013-01-09 22:37:34 +00:00
Jason Molenda
153c8e0cc2
<rdar://problem/12602653>
...
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
2013-01-05 06:08:51 +00:00
Jason Molenda
f17b5ac6e1
<rdar://problem/11961650>
...
Update the debugserver "qProcessInfo" implementation to return the
cpu type, cpu subtype, OS and vendor information just like qHostInfo
does so lldb can create an ArchSpec based on the returned values.
Add a new GetProcessArchitecture to GDBRemoteCommunicationClient akin
to GetHostArchitecture. If the qProcessInfo packet is supported,
GetProcessArchitecture will return the cpu type / subtype of the
process -- e.g. a 32-bit user process running on a 64-bit x86_64 Mac
system.
Have ProcessGDBRemote set the Target's architecture based on the
GetProcessArchitecture when we've completed an attach/launch/connect.
llvm-svn: 170491
2012-12-19 02:54:03 +00:00
Jason Molenda
fca9c6bb9f
Add a new qProcessInfo packet to debugserver.
...
This can be used by lldb to ask for information
about the process debugserver is attached to/launched.
Particularly useful on a 64-bit x86 Mac system which
can run 32-bit or 64-bit user-land processes.
llvm-svn: 170409
2012-12-18 04:39:43 +00:00
Han Ming Ong
48a100190e
<rdar://problem/12890948>
...
Send thread name using hex encoding.
llvm-svn: 170370
2012-12-17 20:53:19 +00:00
Han Ming Ong
3e70c45fa8
<rdar://problem/12890901>
...
Capturing thread name during profiling.
llvm-svn: 170312
2012-12-17 07:33:07 +00:00
Greg Clayton
12057dafea
Get rid of a warning where functions in DNB.h were extern "C" when they don't need to be anymore.
...
llvm-svn: 169202
2012-12-04 01:57:36 +00:00
Jason Molenda
420f81dc5d
Bump lldb version num to lldb-178, debugserver version to debugserver-198.
...
llvm-svn: 169081
2012-12-01 04:50:09 +00:00
Han Ming Ong
929a94f026
<rdar://problem/12780259>
...
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
2012-11-29 22:14:45 +00:00
Jason Molenda
b8e5c79af1
Correct the label for the com.apple.debugserver.posix plist.
...
<rdar://problem/12769073>
llvm-svn: 168834
2012-11-29 00:01:49 +00:00
Sean Callanan
948d4aba5d
Fixed the debugserver Xcode project to allow
...
DebugClang builds of LLDB to build a properly
codesigned debugserver. I did this by adding
a DebugClang configuration to debugserver that's
just a clone of the Debug configuration.
llvm-svn: 168746
2012-11-27 23:34:41 +00:00
Han Ming Ong
8594ae85d5
<rdar://problem/12759744> Provide physical memory distribution as part of profile data
...
Make use of unix system calls to provide physical memory usage profile data.
llvm-svn: 168720
2012-11-27 19:21:03 +00:00
Jason Molenda
d251c9d163
Han Ming's commit in r168228 had a bunch of 4-space tabs
...
in the source files. Expand to spaces. No content changes,
just whitespace.
llvm-svn: 168238
2012-11-17 01:41:04 +00:00
Han Ming Ong
c811d382f0
Follow up on <rdar://12720514>. Removed commented out code.
...
llvm-svn: 168232
2012-11-17 00:33:14 +00:00
Han Ming Ong
ab3b8b22a1
<rdar://problem/12720514> Sub-TLF: Provide service to profile the inferior
...
This allows client to query profiling states on the inferior.
llvm-svn: 168228
2012-11-17 00:21:04 +00:00
Greg Clayton
1cb5951a2f
Added a posix_spawn based launchd plist for always using posix_spawn to launch programs.
...
llvm-svn: 167563
2012-11-08 00:06:59 +00:00
Greg Clayton
9eb4e03873
<rdar://problem/12647273>
...
Added the ability to get the full process list when using the --applist option in debugserver.
llvm-svn: 167502
2012-11-06 23:36:26 +00:00
Sean Callanan
84dcccd14b
Switched debugserver to use C++11/libc++.
...
<rdar://problem/12624679>
llvm-svn: 167303
2012-11-02 18:30:51 +00:00
Jason Molenda
0b2dbe0ebe
Fix an error message in debugserver so it doesn't print "Unable to
...
launch process (null)" because we changed argv while doing argument
parsing.
llvm-svn: 167202
2012-11-01 02:02:59 +00:00
Jim Ingham
490bccd659
Switch from using KERN_PROCARGS2 to get the path to the executed process to 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
2012-11-01 01:04:46 +00:00
Greg Clayton
d9c2370b33
Added the plists to the debugserver project and fixed the labels for the new plists.
...
llvm-svn: 167183
2012-10-31 23:49:14 +00:00
Greg Clayton
e11b43bc69
More launchd style plists.
...
llvm-svn: 167182
2012-10-31 23:43:37 +00:00
Greg Clayton
48baf7a788
Resolve any bundle paths we are given when the specified executable is a bundle.
...
llvm-svn: 167175
2012-10-31 21:44:39 +00:00
Greg Clayton
01db0c6823
Provide an SSL context ref in case SLL is needed for communication.
...
llvm-svn: 165856
2012-10-13 00:18:18 +00:00
Greg Clayton
3e672345bc
<rdar://problem/12042500>
...
Fixed an issue where we would try to launch an application twice and the second failure would cover up the first.
llvm-svn: 165756
2012-10-11 22:05:13 +00:00
Greg Clayton
1698be7352
Fix build warnings.
...
llvm-svn: 165755
2012-10-11 22:04:01 +00:00
Greg Clayton
dcadc5cfb7
Re-adding this previously removed file.
...
llvm-svn: 164331
2012-09-20 23:08:52 +00:00
Greg Clayton
b85248da95
This file is causing problems. I am going to remove it and try re-adding it.
...
llvm-svn: 164328
2012-09-20 23:08:12 +00:00
Jason Molenda
944cc67eba
Bump to lldb-168, debugserver-193.
...
llvm-svn: 164291
2012-09-20 06:42:30 +00:00
Greg Clayton
813ddfcdd0
<rdar://problem/12219840>
...
Don't leak mach ports when calling "mach_thread_self()".
llvm-svn: 164152
2012-09-18 18:19:49 +00:00
Greg Clayton
43e0af06b4
Stop using the "%z" size_t modifier and cast all size_t values to uint64_t. Some platforms don't support this modification.
...
llvm-svn: 164148
2012-09-18 18:04:04 +00:00
Greg Clayton
85fb1b93f3
<rdar://problem/11935492>
...
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
2012-09-11 02:33:37 +00:00
Sean Callanan
433c8a1f44
Committed a simple dtrace script that tracks
...
process termination, which can be useful to track
debugserver's delivery of signals.
llvm-svn: 162104
2012-08-17 16:30:13 +00:00
Sean Callanan
d5e37e4d2b
Updating Xcode project version numbers for lldb-165 and debugserver-192
...
llvm-svn: 161374
2012-08-07 00:32:29 +00:00
Sean Callanan
c40b0f38b3
Updating Xcode project version numbers for lldb-164 and debugserver-191
...
llvm-svn: 161209
2012-08-02 20:40:53 +00:00
Sean Callanan
6981f1d856
Updating Xcode project version numbers for lldb-163 and debugserver-190
...
llvm-svn: 160770
2012-07-26 01:42:37 +00:00
Jim Ingham
279ceecf65
Add a call to "sync" a thread state before checkpointing registers in 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
2012-07-25 21:12:43 +00:00
Jim Ingham
1bfe4f6417
Use a more efficient API to tell if a process belongs to springboard or not.
...
llvm-svn: 160655
2012-07-24 01:23:53 +00:00
Jim Ingham
cd16df9154
Add "vAttachOrWait" to debugserver, so you can implement "attach to the process if it exists OR wait for it" without race conditions. Use that in lldb.
...
llvm-svn: 160578
2012-07-20 21:37:13 +00:00
Greg Clayton
7dab2be287
<rdar://problem/11908082>
...
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
2012-07-19 02:45:35 +00:00
Greg Clayton
9773542933
Update the project and schemes to the Xcode recommended settings.
...
llvm-svn: 160391
2012-07-17 19:47:06 +00:00
Greg Clayton
23f59509a8
Ran the static analyzer on the codebase and found a few things.
...
llvm-svn: 160338
2012-07-17 03:23:13 +00:00
Jim Ingham
73472eef4d
Fix an off by one error when handling a packet where our read buffer size truncates the first chunk of the packet
...
between the two chars representing the checksum.
<rdar://problem/11882074>
llvm-svn: 160310
2012-07-16 18:56:05 +00:00
Jason Molenda
64e1d4abc7
Bump to lldb-162 / debugserver-189.
...
llvm-svn: 160212
2012-07-14 01:12:03 +00:00
Enrico Granata
f04a21917c
<rdar://problem/11782789> Changes to the watchpoint implementation on ARM so 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
2012-07-13 23:18:48 +00:00
Jim Ingham
9aa15a4562
Unify how we get host version on Mac OS X & iOS.
...
Also remove our dependency on UIKit & AppKit.
Cleaned up the project files a bit.
<rdar://problem/11814498>
llvm-svn: 160147
2012-07-12 23:16:43 +00:00
Jason Molenda
84d32ddfc8
Bump versions to lldb-161, debugserver-188.
...
llvm-svn: 159798
2012-07-06 01:32:10 +00:00
Greg Clayton
503cd42259
Spelling fixes.
...
llvm-svn: 159466
2012-06-29 21:58:00 +00:00
Enrico Granata
c76715f3be
<rdar://problem/11679380> Make sure we do not fallback to software stepping when hardware stepping should work but fails to get enabled. Also removing dead code paths
...
llvm-svn: 159322
2012-06-28 01:23:30 +00:00