OSDN Git Service

gdb/
authorjkratoch <jkratoch>
Mon, 5 Jul 2010 17:57:49 +0000 (17:57 +0000)
committerjkratoch <jkratoch>
Mon, 5 Jul 2010 17:57:49 +0000 (17:57 +0000)
commitba52be8c2e021df30fcd4d0e96a5f4c6a0015b57
treede449ed6a062c95cbe836848cc12313a340427a4
parent86102cd653443544f64d073d3b3c61e56770dfec
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