gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Thu, 14 Jan 2010 21:15:00 +0000 (21:15 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Thu, 14 Jan 2010 21:15:00 +0000 (21:15 +0000)
commit9f2982ff0bf5e33d54b085b98970ab15ba4fac46
treecb004329356d337dade67017cf7bb35db6015e38
parentbbfba9ed150f56ba5b09360314b30381a865ff5c
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.
gdb/ChangeLog
gdb/auxv.c
gdb/auxv.h
gdb/linux-nat.c
gdb/procfs.c
gdb/solib-svr4.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/valgrind-db-attach.c [new file with mode: 0644]
gdb/testsuite/gdb.base/valgrind-db-attach.exp [new file with mode: 0644]