| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
| |
off the inferior process so we stand a better chance of understanding
what caused us to send a PT_KILL.
<rdar://problem/12720340>
llvm-svn: 177817
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
to in INADDR_LOOPBACK mode by default ("localhost only")
instead of INADDR_ANY ("accept connections from any system").
Add a new command line argument to debugserver, --open-connection
or -H which will enable the previous behavior. It would be used
if you were doing two-system debugging, with lldb running on one
system and debugserver running on the other. But it is a less
common workflow and should not be the default.
<rdar://problem/12583284>
llvm-svn: 177790
|
|
|
|
|
|
| |
DNBDataRef::ValidOffset() functions.
llvm-svn: 177615
|
|
|
|
|
|
| |
Don't discount regions that vmmap is not discounting.
llvm-svn: 177202
|
|
|
|
|
|
| |
Don't get dirty page size if we are not going to send it back
llvm-svn: 176992
|
|
|
|
|
|
| |
Added logging that will show up in the system console when we try to resume a process that is already running, or has an unexpected state.
llvm-svn: 176960
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Drop the old f registers from debugserver's register list. Add the
NEON 128-bit q registers to debugserver, support reading and writing.
Add the new contains / invalidates mappings for the s, d, and q
registers so lldb will know what registers overlay what other registers.
Change the default format of s and d registers to be floating point
instead of hex. Remove some UTF-8 hyphen chars in comments in the ARM
register number definition headers.
<rdar://problem/13121797>
llvm-svn: 176915
|
|
|
|
|
|
|
|
| |
DNBArchImplARM. This framework is no longer around;
all armv7 devices support using hardware breakpoints
to instruction single step.
llvm-svn: 176761
|
|
|
|
|
|
|
| |
Make it configurable what to profile.
For Mac, we don't use the dirty page size yet and hence there is no need to gather that. This should be way better in not draining the battery since we are operating between 0% to 0.1% on the Mac after this change.
llvm-svn: 176451
|
|
|
|
|
|
| |
these two new files.
llvm-svn: 176312
|
|
|
|
|
|
|
| |
work. There isn't any target in the xcode project file which will build
this yet.
llvm-svn: 176234
|
|
|
|
|
|
|
|
| |
prevented queue names
from being fetched correctly. <rdar://problem/13290877>
llvm-svn: 176141
|
|
|
|
|
|
| |
Really don't call sysctl again when we already have the result.
llvm-svn: 176062
|
|
|
|
|
|
| |
standard logs output to make it more useful.
llvm-svn: 176039
|
|
|
|
|
|
| |
Need available CPU on target device to support CPU reporting.
llvm-svn: 176008
|
|
|
|
|
|
| |
Need host_statistics on profile data to get host's user/system/idle clicks
llvm-svn: 175928
|
|
|
|
| |
llvm-svn: 175873
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
own port namepsace) as the thread identifier to using the system-wide
globally unique thread id as the thread identifier number.
MachThread.cpp keeps both the unique id and the mach port number
for each thread. All layers outside MachThread class use the unique
id with three exceptions: (1) Mach exceptions come in with the port
number (thread_port) which needs to be translated, (2) any calls to
low-level thread_get_state/thread_set_state/thread_suspend etc need
to use the mach port number, (3) MachThreadList::UpdateThreadList
which creates the MachThread objects gets the unique id and passes
it to the MachThread ctor as an argument.
In general, any time nub_thread_t is used, it is now referring to a
unique thread id. Any time a thread_t is used, it is now referring
to a mach port number. There was some interchangability of these
types previously. nub_thread_t has also been changed to a 64-bit
type which necessitated some printf specification string changes.
I haven't been able to test these changes extensively yet but want
to checkpoint the work. The scenarios I've been testing are all
working correctly so while there may be some corner cases I haven't
hit yet, I think it is substantially correct.
<rdar://problem/12931414>
llvm-svn: 175870
|
|
|
|
|
|
| |
Remember to set m_profile_thread to NULL once the profile thread is turned off.
llvm-svn: 175761
|
|
|
|
| |
llvm-svn: 175337
|
|
|
|
|
|
| |
Rename the monitor command from "qCmd" (incorrect) to "qRcmd".
llvm-svn: 175191
|
|
|
|
|
|
|
|
|
| |
set logfile=<path>
set logmask=<num>
But this opens the door for us to do much more.
llvm-svn: 174258
|
|
|
|
|
|
| |
Get the number of threads correct.
llvm-svn: 173466
|
|
|
|
|
|
|
|
|
|
|
|
| |
Major fixed to allow reading files that are over 4GB. The main problems were that the DataExtractor was using 32 bit offsets as a data cursor, and since we mmap all of our object files we could run into cases where if we had a very large core file that was over 4GB, we were running into the 4GB boundary.
So I defined a new "lldb::offset_t" which should be used for all file offsets.
After making this change, I enabled warnings for data loss and for enexpected implicit conversions temporarily and found a ton of things that I fixed.
Any functions that take an index internally, should use "size_t" for any indexes and also should return "size_t" for any sizes of collections.
llvm-svn: 173463
|
|
|
|
|
|
|
|
| |
the system
handler. Also put in string translations for a couple of exceptions we were missing.
llvm-svn: 173390
|
|
|
|
|
|
| |
for non-x86 builds.
llvm-svn: 173226
|
|
|
|
|
|
|
|
|
|
| |
reply to be hex encoded, not decimal.
Fix the whitespace in the container-regs/invalidate-regs
documentation, fix one ambiguous hex/decimal number in an
example.
llvm-svn: 173225
|
|
|
|
|
|
| |
be raw hex to match all other register reading and writing APIs.
llvm-svn: 173105
|
|
|
|
|
|
| |
Modified the ARM register context to invalidate r8 - r14 when the CPSR register is modified.
llvm-svn: 173104
|
|
|
|
|
|
|
|
|
|
| |
Fixed the 32, 16, and 8 bit pseudo regs for x86_64 (real reg of "rax" which subvalues "eax", "ax", etc...) to correctly get updated when stepping. Also fixed it so actual registers can specify what other registers must be invalidated when a register is modified. Previously, only pseudo registers could invalidate other registers.
Modified the LLDB qRegisterInfo extension to the GDB remote interface to support specifying the containing registers with the new "container-regs" key whose value is a comma separated list of register numbers. Also added a "invalidate-regs" key whose value is also a comma separated list of register numbers.
Removed the hack GDBRemoteDynamicRegisterInfo::Addx86_64ConvenienceRegisters() function and modified "debugserver" to specify the registers correctly using the new "container-regs" and "invalidate-regs" keys.
llvm-svn: 173096
|
|
|
|
|
|
| |
Swap in index ids for thread ids in GDBRemoteCommunicationClient. Besides dealing with the async logic, I have to take care of the situation when the inferior paused as well.
llvm-svn: 172869
|
|
|
|
|
|
|
| |
Change RNBSocket from using lockdown's lockdown_secure_checkin()
function to using lockdown's secure_lockdown_checkin() function.
llvm-svn: 172775
|
|
|
|
| |
llvm-svn: 172702
|
|
|
|
|
|
| |
Prevent profiling from working on older debugserver. Just a simple renaming since the caller is prepared to handle the ‘unimplemented’ answer.
llvm-svn: 172583
|
|
|
|
|
|
|
| |
document some simple bourne shell to re-generate these from the DNBDefs.h
header file in case this needs to be done again in the future.
llvm-svn: 172494
|
|
|
|
| |
llvm-svn: 172442
|
|
|
|
| |
llvm-svn: 172311
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
Send thread name using hex encoding.
llvm-svn: 170370
|
|
|
|
|
|
| |
Capturing thread name during profiling.
llvm-svn: 170312
|
|
|
|
|
|
| |
don't need to be anymore.
llvm-svn: 169202
|
|
|
|
|
|
|
| |
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/12769073>
llvm-svn: 168834
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
llvm-svn: 168232
|