llvm-project/lldb/source
Greg Clayton 3af9ea56d3 Fixed Process::Halt() as it was broken for "process halt" after recent changes
to the DoHalt down in ProcessGDBRemote. I also moved the functionality that
was in ProcessGDBRemote::DoHalt up into Process::Halt so not every class has
to implement a tricky halt/resume on the internal state thread. The 
functionality is the same as it was before with two changes:
- when we eat the event we now just reuse the event we consume when the private
  state thread is paused and set the interrupted bool on the event if needed
- we also properly update the Process::m_public_state with the state of the
  event we consume.
  
Prior to this, if you issued a "process halt" it would eat the event, not 
update the process state, and then produce a new event with the interrupted
bit set and send it. Anyone listening to the event would get the stopped event
with a process that whose state was set to "running".

Fixed debugserver to not have to be spawned with the architecture of the
inferior process. This worked fine for launching processes, but when attaching
to processes by name or pid without a file in lldb, it would fail.

Now debugserver can support multiple architectures for a native debug session
on the current host. This currently means i386 and x86_64 are supported in
the same binary and a x86_64 debugserver can attach to a i386 executable.
This change involved a lot of changes to make sure we dynamically detect the
correct registers for the inferior process.

llvm-svn: 119680
2010-11-18 05:57:03 +00:00
..
API Fixed FileSpec's operator == to deal with equivalent paths such as "/tmp/a.c" 2010-11-08 00:28:40 +00:00
Breakpoint Fixed a crasher (an assert was firing in the DWARF parser) when setting 2010-11-14 00:22:48 +00:00
Commands Added the address of operator for the "frame variable" command. 2010-11-15 01:32:26 +00:00
Core Make processes use InputReaders for their input. Move the process 2010-11-16 05:07:41 +00:00
Expression Updated to the LLVM/Clang of 2010-11-17 at 3:30pm. 2010-11-18 02:56:27 +00:00
Host Silence a bunch of clang warnings. 2010-11-10 20:16:47 +00:00
Interpreter Move the embedded Python interpreter onto a separate thread, to prevent 2010-11-10 19:18:14 +00:00
Plugins Fixed Process::Halt() as it was broken for "process halt" after recent changes 2010-11-18 05:57:03 +00:00
Symbol Updated to the LLVM/Clang of 2010-11-17 at 3:30pm. 2010-11-18 02:56:27 +00:00
Target Fixed Process::Halt() as it was broken for "process halt" after recent changes 2010-11-18 05:57:03 +00:00
Utility Cleaned a few build related things up: 2010-09-24 23:07:41 +00:00
Makefile Patch from Jean-Daniel Dupas: 2010-07-12 23:14:00 +00:00
lldb-log.cpp Move the embedded Python interpreter onto a separate thread, to prevent 2010-11-10 19:18:14 +00:00
lldb.cpp Add a ObjC V1 runtime, and a generic AppleObjCRuntime plugin. 2010-11-04 18:30:59 +00:00