llvm-project/lldb/source/Host/common
Greg Clayton 542e407581 Patch from Andrew Kaylor for linux:
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
2012-09-07 17:49:29 +00:00
..
Condition.cpp Don't expose the pthread_mutex_t underlying the Mutex & Mutex::Locker classes. 2012-05-04 23:02:50 +00:00
File.cpp OptionValueFileSpec had an accessor to read the contents of the file and return the data. This can end up being used to get the string contents of a text file and could end up not being NULL terminated. I added accessors to get the file contents raw, or with a null terminator. Added the needed calls to make this happen in the FileSpec and File classes. 2012-08-30 18:15:10 +00:00
FileSpec.cpp OptionValueFileSpec had an accessor to read the contents of the file and return the data. This can end up being used to get the string contents of a text file and could end up not being NULL terminated. I added accessors to get the file contents raw, or with a null terminator. Added the needed calls to make this happen in the FileSpec and File classes. 2012-08-30 18:15:10 +00:00
Host.cpp Patch from Andrew Kaylor for linux: 2012-09-07 17:49:29 +00:00
Makefile
Mutex.cpp Fixed errors and warnings on debug code. 2012-07-09 13:34:19 +00:00
SocketAddress.cpp Add support for platforms without sa_len to SocketAddress, and modify 2011-07-22 19:12:42 +00:00
Symbols.cpp Made a ModuleSpec class in Module.h which can specify a module using one or 2012-02-26 05:51:37 +00:00
Terminal.cpp Ran the static analyzer on the codebase and found a few things. 2012-07-17 03:23:13 +00:00
TimeValue.cpp Fix a integer trauction issue - calculating the current time in 2012-04-07 04:55:02 +00:00