aboutsummaryrefslogtreecommitdiff
path: root/gdb/auxv.h
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2010-01-14 21:15:00 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2010-01-14 21:15:00 +0000
commit9f2982ff0bf5e33d54b085b98970ab15ba4fac46 (patch)
treecb004329356d337dade67017cf7bb35db6015e38 /gdb/auxv.h
parentbbfba9ed150f56ba5b09360314b30381a865ff5c (diff)
downloadbinutils-9f2982ff0bf5e33d54b085b98970ab15ba4fac46.zip
binutils-9f2982ff0bf5e33d54b085b98970ab15ba4fac46.tar.gz
binutils-9f2982ff0bf5e33d54b085b98970ab15ba4fac46.tar.bz2
gdb/
Support Valgrind attachments broken by the PIE support. * auxv.c: Include gdbcore.h. (procfs_xfer_auxv): Make static. Reduce its comment. Drop its parameters ops, object and annex. Remove their assertions. (ld_so_xfer_auxv, memory_xfer_auxv): New function. * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ... (memory_xfer_auxv): ... here. * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to memory_xfer_auxv. * procfs.c (procfs_xfer_partial): Likewise. * solib-svr4.c (svr4_relocate_main_executable): New prototype. (svr4_special_symbol_handling): Call svr4_relocate_main_executable. (svr4_solib_create_inferior_hook): Conditionalize the svr4_relocate_main_executable call. gdb/testsuite/ * gdb.base/valgrind-db-attach.exp, gdb.base/valgrind-db-attach.c: New.
Diffstat (limited to 'gdb/auxv.h')
-rw-r--r--gdb/auxv.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/gdb/auxv.h b/gdb/auxv.h
index bcab094..679bf17 100644
--- a/gdb/auxv.h
+++ b/gdb/auxv.h
@@ -43,11 +43,7 @@ extern int target_auxv_search (struct target_ops *ops,
/* Print the contents of the target's AUXV on the specified file. */
extern int fprint_target_auxv (struct ui_file *file, struct target_ops *ops);
-/* This function is called like a to_xfer_partial hook, but must be
- called with TARGET_OBJECT_AUXV. It handles access via
- /proc/PID/auxv, which is a common method for native targets. */
-
-extern LONGEST procfs_xfer_auxv (struct target_ops *ops,
+extern LONGEST memory_xfer_auxv (struct target_ops *ops,
enum target_object object,
const char *annex,
gdb_byte *readbuf,