aboutsummaryrefslogtreecommitdiff
path: root/gdb/corefile.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2009-01-28 00:09:49 +0000
committerPedro Alves <palves@redhat.com>2009-01-28 00:09:49 +0000
commit7df3ce47694f5c804a9468d4c098825b5901216e (patch)
treef3cbb99d0b05cd3ac06d8910ea1362d4603f6146 /gdb/corefile.c
parent512f063a2ebdb174d837548289ca0cc05bbf1150 (diff)
downloadgdb-7df3ce47694f5c804a9468d4c098825b5901216e.zip
gdb-7df3ce47694f5c804a9468d4c098825b5901216e.tar.gz
gdb-7df3ce47694f5c804a9468d4c098825b5901216e.tar.bz2
* corefile.c (generic_search): Delete disabled code.
* gdbcore.h (generic_search): Delete declaration.
Diffstat (limited to 'gdb/corefile.c')
-rw-r--r--gdb/corefile.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/gdb/corefile.c b/gdb/corefile.c
index 57a0cdf..e667183 100644
--- a/gdb/corefile.c
+++ b/gdb/corefile.c
@@ -368,40 +368,6 @@ write_memory_signed_integer (CORE_ADDR addr, int len, LONGEST value)
store_signed_integer (buf, len, value);
write_memory (addr, buf, len);
}
-
-
-
-#if 0
-/* Enable after 4.12. It is not tested. */
-
-/* Search code. Targets can just make this their search function, or
- if the protocol has a less general search function, they can call this
- in the cases it can't handle. */
-void
-generic_search (int len, char *data, char *mask, CORE_ADDR startaddr,
- int increment, CORE_ADDR lorange, CORE_ADDR hirange,
- CORE_ADDR *addr_found, char *data_found)
-{
- int i;
- CORE_ADDR curaddr = startaddr;
-
- while (curaddr >= lorange && curaddr < hirange)
- {
- read_memory (curaddr, data_found, len);
- for (i = 0; i < len; ++i)
- if ((data_found[i] & mask[i]) != data[i])
- goto try_again;
- /* It matches. */
- *addr_found = curaddr;
- return;
-
- try_again:
- curaddr += increment;
- }
- *addr_found = (CORE_ADDR) 0;
- return;
-}
-#endif /* 0 */
/* The current default bfd target. Points to storage allocated for
gnutarget_string. */