Locate executables on remote stubs without multiprocess extensions
authorGary Benson <gbenson@redhat.com>
Tue, 12 May 2015 10:57:52 +0000 (11:57 +0100)
committerGary Benson <gbenson@redhat.com>
Tue, 12 May 2015 10:57:52 +0000 (11:57 +0100)
commit835205d078aa3b78180da1512f8019ab064032e7
tree61bf26b5330e9cd64d7aa6cb8281feb03f9e6948
parent5b155b955ab0f4b6db3a5edb049f8e4d5a712f4a
Locate executables on remote stubs without multiprocess extensions

This commit allows GDB to determine filenames of main executables
when debugging using remote stubs without multiprocess extensions.
The qXfer:exec-file:read packet is extended to allow an empty
annex, with the meaning that the remote stub should supply the
filename of whatever it thinks is the current process.

gdb/ChangeLog:

* remote.c (remote_add_inferior): Call exec_file_locate_attach
for fake PIDs as well as real ones.
(remote_pid_to_exec_file): Send empty annex if PID is fake.

gdb/doc/ChangeLog:

* gdb.texinfo (General Query Packets): Document
qXfer:exec-file:read with empty annex.

gdb/gdbserver/ChangeLog:

* server.c (handle_qxfer_exec_file): Use current process
if annex is empty.
gdb/ChangeLog
gdb/doc/ChangeLog
gdb/doc/gdb.texinfo
gdb/gdbserver/ChangeLog
gdb/gdbserver/server.c
gdb/remote.c
This page took 0.026985 seconds and 4 git commands to generate.