hanchenye-llvm-project/lldb/source/Plugins/Platform/gdb-server
Greg Clayton 144f3a9c90 Added a new class to Process.h: ProcessAttachInfo. This class contains enough
info for us to attach by pid, or by name and will also allow us to eventually
do a lot more powerful attaches. If you look at the options for the "platform
process list" command, there are many options which we should be able to
specify. This will allow us to do things like "attach to a process named 'tcsh'
that has a parent process ID of 123", or "attach to a process named 'x' which
has an effective user ID of 345". 

I finished up the --shell implementation so that it can be used without the
--tty option in "process launch". The "--shell" option now can take an 
optional argument which is the path to the shell to use (or a partial name
like "sh" which we will find using the current PATH environment variable).

Modified the Process::Attach to use the new ProcessAttachInfo as the sole
argument and centralized a lot of code that was in the "process attach"
Execute function so that everyone can take advantage of the powerful new
attach functionality.

llvm-svn: 144615
2011-11-15 03:53:30 +00:00
..
Makefile Add PlatformGDBServer and ProcessGDBRemote to the build system. 2011-03-26 00:32:59 +00:00
PlatformRemoteGDBServer.cpp Added a new class to Process.h: ProcessAttachInfo. This class contains enough 2011-11-15 03:53:30 +00:00
PlatformRemoteGDBServer.h Added a new class to Process.h: ProcessAttachInfo. This class contains enough 2011-11-15 03:53:30 +00:00