diff options
author | Gary Benson <gbenson@redhat.com> | 2015-04-17 09:47:30 +0100 |
---|---|---|
committer | Gary Benson <gbenson@redhat.com> | 2015-04-17 09:47:30 +0100 |
commit | e57f1de3b37e17e1c80515f6e80ecb4ccd1bf0fb (patch) | |
tree | 519f342e28449c2327829ac6c2687f7931463f20 /gdb/gdbserver/target.h | |
parent | c78fa86a213db1bdef328437ac262a4f54577827 (diff) | |
download | gdb-e57f1de3b37e17e1c80515f6e80ecb4ccd1bf0fb.zip gdb-e57f1de3b37e17e1c80515f6e80ecb4ccd1bf0fb.tar.gz gdb-e57f1de3b37e17e1c80515f6e80ecb4ccd1bf0fb.tar.bz2 |
Implement qXfer:exec-file:read in gdbserver
This commit implements the "qXfer:exec-file:read" packet in gdbserver.
gdb/gdbserver/ChangeLog:
* target.h (struct target_ops) <pid_to_exec_file>: New field.
* linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
* server.c (handle_qxfer_exec_file): New function.
(qxfer_packets): Add exec-file entry.
(handle_query): Report qXfer:exec-file:read as supported packet.
Diffstat (limited to 'gdb/gdbserver/target.h')
-rw-r--r-- | gdb/gdbserver/target.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/gdbserver/target.h b/gdb/gdbserver/target.h index 126c861..6280c26 100644 --- a/gdb/gdbserver/target.h +++ b/gdb/gdbserver/target.h @@ -394,6 +394,14 @@ struct target_ops /* Return true if target supports range stepping. */ int (*supports_range_stepping) (void); + + /* Return the full absolute name of the executable file that was + run to create the process PID. If the executable file cannot + be determined, NULL is returned. Otherwise, a pointer to a + character string containing the pathname is returned. This + string should be copied into a buffer by the client if the string + will not be immediately used, or if it must persist. */ + char *(*pid_to_exec_file) (int pid); }; extern struct target_ops *the_target; |