Move simple_search_memory to gdbsupport/search.cc
authorTom Tromey <tromey@adacore.com>
Wed, 7 Oct 2020 18:07:55 +0000 (12:07 -0600)
committerTom Tromey <tromey@adacore.com>
Wed, 7 Oct 2020 18:07:55 +0000 (12:07 -0600)
commit4a72de73660810536e9bb416d41dc8a6128f91da
tree4ada40b22e18b0ab7b64494c58d45c1492a76187
parente86efb3310cf3aa9515cca07d0835b7e8af79b38
Move simple_search_memory to gdbsupport/search.cc

This moves the simple_search_memory function to a new file,
gdbsupport/search.cc.  The API is slightly changed to make it more
general.  This generality is useful for wiring it to gdbserver, and
also for unit testing.

gdb/ChangeLog
2020-10-07  Tom Tromey  <tromey@adacore.com>

* target.h (simple_search_memory): Don't declare.
* target.c (simple_search_memory): Move to gdbsupport.
(default_search_memory): Update.
* remote.c (remote_target::search_memory): Update.

gdbsupport/ChangeLog
2020-10-07  Tom Tromey  <tromey@adacore.com>

* Makefile.in: Rebuild.
* Makefile.am (libgdbsupport_a_SOURCES): Add search.cc.
* search.h: New file.
* search.cc: New file.
gdb/ChangeLog
gdb/remote.c
gdb/target.c
gdb/target.h
gdbsupport/ChangeLog
gdbsupport/Makefile.am
gdbsupport/Makefile.in
gdbsupport/search.cc [new file with mode: 0644]
gdbsupport/search.h [new file with mode: 0644]