diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2012-01-20 09:59:15 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2012-01-20 09:59:15 +0000 |
commit | 35c2fab7c6364453c5847ba5fccd68dded16d7a6 (patch) | |
tree | a82f332e4f055eeb052fc5d61a153522a406737f /gdb/gdbarch.sh | |
parent | 6432734d1ddb783a4f7ed377dfe5920013ee9872 (diff) | |
download | binutils-gdb-35c2fab7c6364453c5847ba5fccd68dded16d7a6.tar.gz |
* gdbarch.sh (find_memory_regions): New callback.
* gdbarch.c, gdbarch.h: Regenerate.
* gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
callback before falling back to target method.
* linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
(linux_target_install_ops): No longer install it.
* linux-tdep.c (linux_find_memory_regions): New function.
(linux_init_abi): Install it.
Diffstat (limited to 'gdb/gdbarch.sh')
-rwxr-xr-x | gdb/gdbarch.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/gdbarch.sh b/gdb/gdbarch.sh index c4ff5d1cceb..37281bac77d 100755 --- a/gdb/gdbarch.sh +++ b/gdb/gdbarch.sh @@ -634,6 +634,9 @@ v:struct core_regset_section *:core_regset_sections:const char *name, int len::: # Create core file notes M:char *:make_corefile_notes:bfd *obfd, int *note_size:obfd, note_size +# Find core file memory regions +M:int:find_memory_regions:find_memory_region_ftype func, void *data:func, data + # Read offset OFFSET of TARGET_OBJECT_LIBRARIES formatted shared libraries list from # core file into buffer READBUF with length LEN. M:LONGEST:core_xfer_shared_libraries:gdb_byte *readbuf, ULONGEST offset, LONGEST len:readbuf, offset, len |