aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2020-10-07 12:07:55 -0600
committerTom Tromey <tromey@adacore.com>2020-10-07 12:07:55 -0600
commit4a72de73660810536e9bb416d41dc8a6128f91da (patch)
tree4ada40b22e18b0ab7b64494c58d45c1492a76187 /gdb/target.h
parente86efb3310cf3aa9515cca07d0835b7e8af79b38 (diff)
downloadbinutils-4a72de73660810536e9bb416d41dc8a6128f91da.zip
binutils-4a72de73660810536e9bb416d41dc8a6128f91da.tar.gz
binutils-4a72de73660810536e9bb416d41dc8a6128f91da.tar.bz2
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.
Diffstat (limited to 'gdb/target.h')
-rw-r--r--gdb/target.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/gdb/target.h b/gdb/target.h
index 695f1b2..8545533 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -2129,14 +2129,6 @@ extern const struct target_desc *target_read_description (struct target_ops *);
#define target_get_ada_task_ptid(lwp, tid) \
(current_top_target ()->get_ada_task_ptid) (lwp,tid)
-/* Utility implementation of searching memory. */
-extern int simple_search_memory (struct target_ops* ops,
- CORE_ADDR start_addr,
- ULONGEST search_space_len,
- const gdb_byte *pattern,
- ULONGEST pattern_len,
- CORE_ADDR *found_addrp);
-
/* Main entry point for searching memory. */
extern int target_search_memory (CORE_ADDR start_addr,
ULONGEST search_space_len,