gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Thu, 14 Jan 2010 21:16:52 +0000 (21:16 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Thu, 14 Jan 2010 21:16:52 +0000 (21:16 +0000)
* solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
Replace exec_entry_point call by bfd_get_start_address.

gdb/ChangeLog
gdb/solib-svr4.c

index fe3340969afdbecc11488accdeb9e80484434582..ee8385ee1cdfce25591f838caf1deb15c159d9fa 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 6daf0dcca6d94d17a3b2ca91bf7509acf0681687..826f8bf0da33afdfd06bb82ecf36c36f31cf2eeb 100644 (file)
@@ -1620,13 +1620,15 @@ static CORE_ADDR
 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 (&current_target, AT_ENTRY, &entry_point) == 1)
-    return entry_point - exec_entry_point (exec_bfd, &current_target);
+    return entry_point - bfd_get_start_address (exec_bfd);
 
   return svr4_static_exec_displacement ();
 }