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/remote.c | |
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/remote.c')
-rw-r--r-- | gdb/remote.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/remote.c b/gdb/remote.c index fd4852f..7acbc71 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -1262,6 +1262,7 @@ enum { PACKET_bs, PACKET_TracepointSource, PACKET_QAllow, + PACKET_qXfer_fdpic, PACKET_MAX }; @@ -3758,6 +3759,8 @@ static struct protocol_feature remote_protocol_features[] = { PACKET_QAllow }, { "EnableDisableTracepoints", PACKET_DISABLE, remote_enable_disable_tracepoint_feature, -1 }, + { "qXfer:fdpic:read", PACKET_DISABLE, remote_supported_packet, + PACKET_qXfer_fdpic }, }; static char *remote_support_xml; @@ -8302,6 +8305,10 @@ remote_xfer_partial (struct target_ops *ops, enum target_object object, return remote_read_qxfer (ops, "traceframe-info", annex, readbuf, offset, len, &remote_protocol_packets[PACKET_qXfer_traceframe_info]); + + case TARGET_OBJECT_FDPIC: + return remote_read_qxfer (ops, "fdpic", annex, readbuf, offset, len, + &remote_protocol_packets[PACKET_qXfer_fdpic]); default: return -1; } @@ -10930,6 +10937,9 @@ Show the maximum size of the address (in bits) in a memory packet."), NULL, add_packet_config_cmd (&remote_protocol_packets[PACKET_qXfer_statictrace_read], "qXfer:statictrace:read", "read-sdata-object", 0); + add_packet_config_cmd (&remote_protocol_packets[PACKET_qXfer_fdpic], + "qXfer:fdpic:read", "read-fdpic-loadmap", 0); + /* Keep the old ``set remote Z-packet ...'' working. Each individual Z sub-packet has its own set and show commands, but users may have sets to this variable in their .gdbinit files (or in their |