aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorGary Benson <gbenson@redhat.com>2015-05-12 11:57:52 +0100
committerGary Benson <gbenson@redhat.com>2015-05-12 11:57:52 +0100
commit835205d078aa3b78180da1512f8019ab064032e7 (patch)
tree61bf26b5330e9cd64d7aa6cb8281feb03f9e6948 /gdb/doc
parent5b155b955ab0f4b6db3a5edb049f8e4d5a712f4a (diff)
downloadgdb-835205d078aa3b78180da1512f8019ab064032e7.zip
gdb-835205d078aa3b78180da1512f8019ab064032e7.tar.gz
gdb-835205d078aa3b78180da1512f8019ab064032e7.tar.bz2
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.
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/ChangeLog5
-rw-r--r--gdb/doc/gdb.texinfo3
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 727d0ad..05aeab7 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,8 @@
+2015-05-12 Gary Benson <gbenson@redhat.com>
+
+ * gdb.texinfo (General Query Packets): Document
+ qXfer:exec-file:read with empty annex.
+
2015-05-09 Siva Chandra Reddy <sivachandra@google.com>
* python.texi (Values From Inferior): Add descriptions of new
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 19d8bb3..5461356 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -36558,7 +36558,8 @@ by supplying an appropriate @samp{qSupported} response (@pxref{qSupported}).
Return the full absolute name of the file that was executed to create
a process running on the remote system. The annex specifies the
numeric process ID of the process to query, encoded as a hexadecimal
-number.
+number. If the annex part is empty the remote stub should return the
+filename corresponding to the currently executing process.
This packet is not probed by default; the remote stub must request it,
by supplying an appropriate @samp{qSupported} response (@pxref{qSupported}).