| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
-Adds workaround for assertion in lldb for TestEvents.py
llvm-svn: 177116
|
| |
|
|
|
|
| |
Patch by Ashok Thirumurthi.
llvm-svn: 176558
|
| |
|
|
| |
llvm-svn: 171864
|
| |
|
|
|
|
|
|
| |
different working directory) on Linux/FreeBSD
- fixes test case TestProcessLaunch
llvm-svn: 171854
|
| |
|
|
|
|
|
|
| |
- make FreeBSD ProcessMonitor API thread-ready
Patch by Matt Kopec!
llvm-svn: 170445
|
| |
|
|
|
|
| |
Patch by Matt Kopec!
llvm-svn: 170242
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- remove unused members
- add NO_PEDANTIC to selected Makefiles
- fix return values (removed NULL as needed)
- disable warning about four-char-constants
- remove unneeded const from operator*() declaration
- add missing lambda function return types
- fix printf() with no format string
- change sizeof to use a type name instead of variable name
- fix Linux ProcessMonitor.cpp to be 32/64 bit friendly
- disable warnings emitted by swig-generated C++ code
Patch by Matt Kopec!
llvm-svn: 169645
|
| |
|
|
|
|
|
|
|
| |
- add new header lldb-python.h to be included before other system headers
- short term fix (eventually python dependencies must be cleaned up)
Patch by Matt Kopec!
llvm-svn: 169341
|
| |
|
|
|
|
|
|
| |
- use macros from inttypes.h for format strings instead of OS-specific types
Patch from Matt Kopec!
llvm-svn: 168945
|
| |
|
|
|
|
|
|
|
|
|
|
| |
times out.
- Handle EINVAL return code from ptrace(GETSIGINFO, ...): not an error, but 'group-stop' state on Linux
- propagate SIGSTOP to inferior in above case
- this commit resolves the failure in expression_command/timeout testcase
Thanks to Sean Callanan & Matt Kopec for helping debug this problem
llvm-svn: 168523
|
| |
|
|
|
|
|
|
|
| |
- StopMonitor() is called anyways from ProcessMonitor destructor later
- resolves hang in TestEvents.py
Patch by Matt Kopec!
llvm-svn: 168503
|
| |
|
|
|
|
| |
This patch fixes an issue where if lldb fails to attach to a process (ie. invalid pid) on Linux, the process monitor thread gets stuck waiting for a signal from the attach thread, which never comes due to not being signaled. It also implements StopOpThread which is used for both attach/launch cases as I'm not aware of any special handling needed for the attach case. Also, propagate 'Error' from the Detach function instead of using a bool.
llvm-svn: 166055
|
| |
|
|
|
|
| |
Process/Thread classes for POSIX and Linux.
llvm-svn: 165806
|
| |
|
|
|
|
| |
attaching and makes sure the pid is being set on linux in the process info.
llvm-svn: 165804
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The attached patch adds support for debugging 32-bit processes when running a 64-bit lldb on an x86_64 Linux system.
Making this work required two basic changes:
1) Getting lldb to report that it could debug 32-bit processes
2) Changing an assumption about how ptrace works when debugging cross-platform
For the first change, I took a conservative approach and only enabled this for x86_64 Linux platforms. It may be that the change I made in Host.cpp could be extended to other 64-bit Linux platforms, but I'm not familiar enough with the other platforms to know for sure.
For the second change, the Linux ProcessMonitor class was assuming that ptrace(PTRACE_[PEEK|POKE]DATA...) would read/write a "word" based on the child process word size. However, the ptrace documentation says that the "word" size read or written is "determined by the OS variant." I verified experimentally that when ptracing a 32-bit child from a 64-bit parent a 64-bit word is read or written.
llvm-svn: 163398
|
| |
|
|
|
|
| |
user_fpregs_struct.
llvm-svn: 154255
|
| |
|
|
| |
llvm-svn: 151072
|
| |
|
|
|
|
|
|
|
|
| |
a new POSIX platform. It also contains fixes for 64bit FreeBSD.
The patch is based on changes by Mark Peek <mp@FreeBSD.org> and
"K. Macy" <kmacy@freebsd.org> in their github repo located at
https://github.com/fbsd/lldb.
llvm-svn: 147609
|
| |
|
|
|
|
| |
implementation of the linux platform.
llvm-svn: 145433
|
| |
|
|
| |
llvm-svn: 145021
|
| |
|
|
|
|
|
|
|
| |
Joel Dillon that fixed 64 debugging for Linux.
I also added a patch to fix up the ProcessLinux::DoLaunch() to be up to date.
I wasn't able to verify it compiles, but it should b really close.
llvm-svn: 143772
|
| |
|
|
|
|
|
|
| |
It also adds some asserts and additional logging support.
from dawn@burble.org
llvm-svn: 142384
|
| |
|
|
| |
llvm-svn: 141593
|
| |
|
|
|
|
|
| |
This patch is a starting point for the attach functionality.
Signed-off-by: Johnny Chen <johnny.chen@apple.com>
llvm-svn: 133006
|
| |
|
|
| |
llvm-svn: 132972
|
| |
|
|
| |
llvm-svn: 132971
|
| |
|
|
| |
llvm-svn: 132970
|
| |
|
|
| |
llvm-svn: 132587
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
solve the build break due to the lack of this method.
It also propose a solution to the API changes in RegisterContext.
I upgraded also the the python version in the makefile. My linux
installation has python2.7 and AFAIK also the latest ubuntu
has this version of python so maybe is worth upgrading.
Patch by Marco Minutoli <mminutoli@gmail.com>
[Note: I had to hand merge in the diffs since patch thinks it is a corrupt patch.]
llvm-svn: 131313
|
| |
|
|
|
|
|
|
| |
This patch upgrades the Linux process plugin to handle a larger range of signal
events. For example, we can detect when the inferior has "crashed" and why,
interrupt a running process, deliver an arbitrary signal, and so on.
llvm-svn: 128547
|
| |
|
|
| |
llvm-svn: 128137
|
| |
|
|
|
|
|
| |
Update the linux plugin code to use the new check for a valid host
thread introduced in r125067.
llvm-svn: 125213
|
| |
|
|
|
|
|
| |
This patch removes a potential race condition between a process monitor thread
and its parent waiting to interrogate the success/failure of the launch.
llvm-svn: 123803
|
| |
|
|
| |
llvm-svn: 123797
|
| |
|
|
|
|
|
| |
Propagate the environment if one is not provided. Also, do not allocate the
monitor threads launch arguments on the stack.
llvm-svn: 123502
|
| |
|
|
|
|
| |
Thanks Bruce!
llvm-svn: 123083
|
| |
|
|
| |
llvm-svn: 122835
|
| |
|
|
| |
llvm-svn: 122834
|
|
|
This component is still at an early stage, but allows for simple
breakpoint/step-over operations and basic process control.
The makefiles are set up to build the plugin under Linux only.
llvm-svn: 109318
|