This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] PIEb: func descriptor (ppc64) regression fix
On Mon, 11 Jan 2010 22:35:23 +0100, Tom Tromey wrote:
> >>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:
>
> Jan> 2010-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
> Jan> * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
> Jan> Replace exec_entry_point call by bfd_get_start_address.
>
> Ok.
Checked-in.
Thanks,
Jan
http://sourceware.org/ml/gdb-cvs/2010-01/msg00126.html
--- src/gdb/ChangeLog 2010/01/14 21:14:57 1.11250
+++ src/gdb/ChangeLog 2010/01/14 21:16:51 1.11251
@@ -1,5 +1,10 @@
2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
+ * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
+ Replace exec_entry_point call by bfd_get_start_address.
+
+2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
+
Support Valgrind attachments broken by the PIE support.
* auxv.c: Include gdbcore.h.
(procfs_xfer_auxv): Make static. Reduce its comment. Drop its
--- src/gdb/solib-svr4.c 2010/01/14 21:15:00 1.114
+++ src/gdb/solib-svr4.c 2010/01/14 21:16:52 1.115
@@ -1620,13 +1620,15 @@
svr4_exec_displacement (void)
{
int found;
+ /* ENTRY_POINT is a possible function descriptor - before
+ a call to gdbarch_convert_from_func_ptr_addr. */
CORE_ADDR entry_point;
if (exec_bfd == NULL)
return 0;
if (target_auxv_search (¤t_target, AT_ENTRY, &entry_point) == 1)
- return entry_point - exec_entry_point (exec_bfd, ¤t_target);
+ return entry_point - bfd_get_start_address (exec_bfd);
return svr4_static_exec_displacement ();
}