gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Mon, 5 Jul 2010 17:57:50 +0000 (17:57 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Mon, 5 Jul 2010 17:57:50 +0000 (17:57 +0000)
commit0a1e94c73edc44cacedc14eb14829d60a1c6dbbd
tree86deeba3160b4fd8409890e4f6db857066a8f76c
parentd7d9a9f820395ecfe06c80fa12bf9cf60f455482
gdb/
Fix attaching to PIEs prelinked on the disk after the process was
started.
* solib-svr4.c (svr4_exec_displacement): New variable arch_size.
Verify it against bfd_get_arch_size.  Try to match arbitrary
displacement for the phdrs comparison.

gdb/testsuite/
* gdb.base/break-interp.exp: Run $binpie with new value "ATTACH", new
code for it.  New variable relink_args.
(prelinkYES): Call prelinkNO.
(test_attach): Accept new parameter relink_args.  Re-prelink the binary
in such case.  Move the core code to ...
(test_attach_gdb): ... a new function.  Send GDB command "file".
Extend expected "Attaching to " string.
gdb/ChangeLog
gdb/solib-svr4.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/break-interp.exp