| Age | Commit message (Collapse) | Author |
|
llvm-svn: 189953
|
|
Patch by Richard Mitton.
llvm-svn: 188075
|
|
always now.
Created new LinuxThread class inherited from POSIXThread and removed linux / freebsd ifdefs
Removed several un-needed set thread name calls
CR (and multiple suggestions): mkopec
llvm-svn: 187545
|
|
llvm-svn: 186509
|
|
llvm-svn: 186112
|
|
llvm-svn: 186033
|
|
llvm-svn: 185981
|
|
llvm-svn: 185946
|
|
multi-threaded programs.
Also fix a related issue where if a thread exits after a thread continue, lldb would hang.
llvm-svn: 185944
|
|
llvm-svn: 184745
|
|
llvm-svn: 183140
|
|
All running threads will be detected and stopped on attach and all threads get resumed on detach.
llvm-svn: 183049
|
|
Also adding multithreaded test cases.
llvm-svn: 182809
|
|
fixes that.
Thus, this patch also negates a previous fix for handling SIGCHLD.
llvm-svn: 182166
|
|
-Remove tracing of fork/vfork until we add support for tracing inferiors' children on Linux.
-Add trace exec option for ptrace so that we don't receive legacy SIGTRAP signals on execve calls.
-Add handling of SIGCHLD sent by kernel (for now, deliver the signal to the inferior).
llvm-svn: 182153
|
|
llvm-svn: 181712
|
|
- Eliminated the use of static for methods that read m_register_infos, so that these routines can be implemented in the base class.
- Eliminated m_register_infos in the base class because this is not used when derived classes call UpdateRegisterInfo.
- Also moved the namespace using declarations from headers to source files.
Thanks to Daniel and Samuel for their review feedback.
llvm-svn: 181538
|
|
llvm-svn: 181341
|
|
the macros and just use C++11.
llvm-svn: 179805
|
|
C++11 is being used. To do this, we follow what we have done for shared pointers and we define a STD_UNIQUE_PTR macro that can be used and it will "do the right thing". Due to some API differences in std::unique_ptr and due to the fact that we need to be able to compile without C++11, we can't use move semantics so some code needed to change so that it can compile with either C++.
Anyone wanting to use a unique_ptr or auto_ptr should now use the "STD_UNIQUE_PTR(TYPE)" macro.
llvm-svn: 179779
|
|
- All Linux logging channels now use a single global instance of lldb_private::Log, to handle the case of logging during process tear down.
- Also removed a single use of LogSP in FreeBSD and fixed a typo in a comment while reading through ProcessKDPLog.
Reviewed by Daniel Malea.
llvm-svn: 178242
|
|
- modified a comment
llvm-svn: 178178
|
|
Patch by Ashok Thirumurthi.
llvm-svn: 177568
|
|
when building. This needs to be accounted for.
llvm-svn: 177176
|
|
Patch by Ashok Thirumurthi.
llvm-svn: 177173
|
|
-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
|