diff options
author | Greg Clayton <gclayton@apple.com> | 2011-02-24 22:24:29 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2011-02-24 22:24:29 +0000 |
commit | 71337622329b5046a7a8f902a91f07cc4b0776fc (patch) | |
tree | 33c8f96b3f38b57e77696b4965a1855d8525092c /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h | |
parent | afb36fad99457fd0ed10fa483c766b4783e0ec74 (diff) | |
download | bcm5719-llvm-71337622329b5046a7a8f902a91f07cc4b0776fc.tar.gz bcm5719-llvm-71337622329b5046a7a8f902a91f07cc4b0776fc.zip |
Fixed CommandReturnObject::SetImmediateErrorFile() to set the correct stream.
Modifed lldb_private::Process to be able to handle connecting to a remote
target that isn't running a process. This leaves lldb_private::Process in the
eStateConnected state from which we can then do an attach or launch.
Modified ProcessGDBRemote to be able to set stdin, stdout, stderr, working
dir, disable ASLR and a few other settings down by using new GDB remote
packets. This allows us to keep all of our current launch flags and settings
intact and still be able to communicate them over to the remote GDB server.
Previously these were being sent as arguments to the debugserver binary that
we were spawning. Also modified ProcessGDBRemote to handle losing connection
to the remote GDB server and always exit immediately. We do this by watching
the lldb_private::Communication event bit for the read thread exiting in the
ProcessGDBRemote async thread.
Added support for many of the new 'Q' packets for setting stdin, stdout,
stderr, working dir and disable ASLR to the GDBRemoteCommunication class for
easy accesss.
Modified debugserver for all of the new 'Q' packets and also made it so that
debugserver always exists if it loses connection with the remote debugger.
llvm-svn: 126444
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h index 7d5a361e98b..bd61ed24868 100644 --- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h +++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h @@ -293,16 +293,10 @@ protected: StartDebugserverProcess (const char *debugserver_url, // The connection string to use in the spawned debugserver ("localhost:1234" or "/dev/tty...") char const *inferior_argv[], char const *inferior_envp[], - const char *stdin_path, - const char *stdout_path, - const char *stderr_path, - const char *working_dir, - bool launch_process, // Set to true if we are going to be launching a the process lldb::pid_t attach_pid, // If inferior inferior_argv == NULL, then attach to this pid const char *attach_pid_name, // Wait for the next process to launch whose basename matches "attach_wait_name" bool wait_for_launch, // Wait for the process named "attach_wait_name" to launch - uint32_t launch_flags, - lldb_private::ArchSpec& arch_spec); + const lldb_private::ArchSpec& arch_spec); void KillDebugserverProcess (); |