diff options
author | Yao Qi <yao@codesourcery.com> | 2011-08-14 13:03:13 +0000 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2011-08-14 13:03:13 +0000 |
commit | 78d8519916ea5cc108bb6280779e0384978fa6d2 (patch) | |
tree | de5d8d9878253d714752940a83cb776510b7acd4 /gdb/gdbserver/target.h | |
parent | d3e3fa9393077d57b41b07f96be95e1035dcda48 (diff) | |
download | gdb-78d8519916ea5cc108bb6280779e0384978fa6d2.zip gdb-78d8519916ea5cc108bb6280779e0384978fa6d2.tar.gz gdb-78d8519916ea5cc108bb6280779e0384978fa6d2.tar.bz2 |
gdb/
* remote.c (PACKET_qXfer_fdpic): New enum value.
(remote_protocol_features): Add qXfer:fdpic:read packet.
(remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
(_initialize_remote): Add set/show remote read-fdpic-loadmap command.
* target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
gdb/gdbserver:
* target.h (struct target_ops): Add read_loadmap.
* linux-low.c (struct target_loadseg): New type.
(struct target_loadmap): New type.
(linux_read_loadmap): New function.
(linux_target_ops): Add linux_read_loadmap.
* server.c (handle_query): Support qXfer:fdpic:read packet.
* win32-low.c (win32_target_ops): Initialize field `read_loadmap' to NULL.
gdb/doc/
* gdb.texinfo : Document qXfer:fdpic:read packet.
Diffstat (limited to 'gdb/gdbserver/target.h')
-rw-r--r-- | gdb/gdbserver/target.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/gdbserver/target.h b/gdb/gdbserver/target.h index 00214db..3a823a1 100644 --- a/gdb/gdbserver/target.h +++ b/gdb/gdbserver/target.h @@ -311,6 +311,10 @@ struct target_ops /* Returns the core given a thread, or -1 if not known. */ int (*core_of_thread) (ptid_t); + /* Read loadmaps. Read LEN bytes at OFFSET into a buffer at MYADDR. */ + int (*read_loadmap) (const char *annex, CORE_ADDR offset, + unsigned char *myaddr, unsigned int len); + /* Target specific qSupported support. */ void (*process_qsupported) (const char *); |