forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -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 *);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user