* ppc-linux-tdep.c (ppc_linux_init_abi): Do not install
authorUlrich Weigand <uweigand@de.ibm.com>
Fri, 16 May 2008 12:49:47 +0000 (12:49 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Fri, 16 May 2008 12:49:47 +0000 (12:49 +0000)
ppc64_sysv_abi_adjust_breakpoint_address.
* ppc-sysv-tdep.c (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
* ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Remove.

gdb/ChangeLog
gdb/ppc-linux-tdep.c
gdb/ppc-sysv-tdep.c
gdb/ppc-tdep.h

index f8f506aae8eac90d2a494a588c73dbd566bcefb4..ad130d70636bdbc7ff82f891d233b5935b161d17 100644 (file)
@@ -1,3 +1,10 @@
+2008-05-16  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * ppc-linux-tdep.c (ppc_linux_init_abi): Do not install
+       ppc64_sysv_abi_adjust_breakpoint_address.
+       * ppc-sysv-tdep.c (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
+       * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
+
 2008-05-16  Ulrich Weigand  <uweigand@de.ibm.com>
 
        * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Remove.
index 91cd3657391dd631c52169e89474bf5b5b714328..088e8b26189a4d4ff2ea1ea3e3300e42cfa9e733 100644 (file)
@@ -914,15 +914,6 @@ ppc_linux_init_abi (struct gdbarch_info info,
   
   if (tdep->wordsize == 8)
     {
-       /* Handle the 64-bit SVR4 minimal-symbol convention of using "FN"
-         for the descriptor and ".FN" for the entry-point -- a user
-         specifying "break FN" will unexpectedly end up with a breakpoint
-         on the descriptor and not the function.  This architecture method
-         transforms any breakpoints on descriptors into breakpoints on the
-         corresponding entry point.  */
-      set_gdbarch_adjust_breakpoint_address
-       (gdbarch, ppc64_sysv_abi_adjust_breakpoint_address);
-
       /* Handle PPC GNU/Linux 64-bit function pointers (which are really
         function descriptors).  */
       set_gdbarch_convert_from_func_ptr_addr
index 669165fc447f0d864a845d8e5caa7e3661255a12..3cb3ea32c98d61225828437aa65868ee748643b1 100644 (file)
@@ -1510,20 +1510,3 @@ ppc64_sysv_abi_return_value (struct gdbarch *gdbarch, struct type *func_type,
   return RETURN_VALUE_STRUCT_CONVENTION;
 }
 
-CORE_ADDR
-ppc64_sysv_abi_adjust_breakpoint_address (struct gdbarch *gdbarch,
-                                         CORE_ADDR bpaddr)
-{
-  /* PPC64 SYSV specifies that the minimal-symbol "FN" should point at
-     a function-descriptor while the corresponding minimal-symbol
-     ".FN" should point at the entry point.  Consequently, a command
-     like "break FN" applied to an object file with only minimal
-     symbols, will insert the breakpoint into the descriptor at "FN"
-     and not the function at ".FN".  Avoid this confusion by adjusting
-     any attempt to set a descriptor breakpoint into a corresponding
-     function breakpoint.  Note that GDB warns the user when this
-     adjustment is applied - that's ok as otherwise the user will have
-     no way of knowing why their breakpoint at "FN" resulted in the
-     program stopping at ".FN".  */
-  return gdbarch_convert_from_func_ptr_addr (gdbarch, bpaddr, &current_target);
-}
index f523b34a3de33f29bee346f9896998320e9ea7e8..766ddd6a3c30aaf11ea167592a7119d5db7f1b39 100644 (file)
@@ -54,9 +54,6 @@ CORE_ADDR ppc64_sysv_abi_push_dummy_call (struct gdbarch *gdbarch,
                                          struct value **args, CORE_ADDR sp,
                                          int struct_return,
                                          CORE_ADDR struct_addr);
-CORE_ADDR ppc64_sysv_abi_adjust_breakpoint_address (struct gdbarch *gdbarch,
-                                                   CORE_ADDR bpaddr);
-
 enum return_value_convention ppc64_sysv_abi_return_value (struct gdbarch *gdbarch,
                                                          struct type *func_type,
                                                          struct type *valtype,