New "find" command.
authorDoug Evans <dje@google.com>
Fri, 9 May 2008 17:02:03 +0000 (17:02 +0000)
committerDoug Evans <dje@google.com>
Fri, 9 May 2008 17:02:03 +0000 (17:02 +0000)
commit08388c79d5a8553465b2de881bed15766837735c
tree1c0af907d5caa5836541d62803dd1775c683913c
parent7010a0c9019a68999ca6e43b4eec8b28d0907cbc
New "find" command.
* NEWS: Document find command and qSearch:memory packet.
* Makefile.in (SFILES): Add findcmd.c.
(COMMON_OBJS): Add findcmd.o.
(findcmd.o): New rule.
* findcmd.c: New file.
* target.h (target_ops): New member to_search_memory.
(simple_search_memory): Declare.
(target_search_memory): Declare.
* target.c (simple_search_memory): New fn.
(target_search_memory): New fn.
* remote.c (PACKET_qSearch_memory): New packet kind.
(remote_search_memory): New fn.
(init_remote_ops): Init to_search_memory.
(init_extended_remote_ops): Ditto.
(_initialize_remote): Add qSearch:memory packet config command.

* gdbserver/server.h (decode_search_memory_packet): Declare.
* gdbserver/remote-utils.c (decode_search_memory_packet): New fn.
* gdbserver/server.c (handle_search_memory_1): New fn.
(handle_search_memory): New fn.
(handle_query): Process qSearch:memory packets.

* doc/gdb.texinfo: Document "find" command, qSearch:memory packet.

* testsuite/gdb.base/find.exp: New file.
* testsuite/gdb.base/find.c: New file.
16 files changed:
gdb/ChangeLog
gdb/Makefile.in
gdb/NEWS
gdb/doc/ChangeLog
gdb/doc/gdb.texinfo
gdb/findcmd.c [new file with mode: 0644]
gdb/gdbserver/ChangeLog
gdb/gdbserver/remote-utils.c
gdb/gdbserver/server.c
gdb/gdbserver/server.h
gdb/remote.c
gdb/target.c
gdb/target.h
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/find.c [new file with mode: 0644]
gdb/testsuite/gdb.base/find.exp [new file with mode: 0644]