* rs6000-tdep.c (rs6000_gdbarch_init): Only set
authorAndrew Cagney <cagney@redhat.com>
Fri, 26 Apr 2002 04:31:47 +0000 (04:31 +0000)
committerAndrew Cagney <cagney@redhat.com>
Fri, 26 Apr 2002 04:31:47 +0000 (04:31 +0000)
convert_from_func_ptr-addr when AIX / PowerOpen.

gdb/ChangeLog
gdb/rs6000-tdep.c

index e91880f33f101b9e068bbdb22c6cba89281dc7ee..924425dd0625a0e94342055ec3b25a5a180d16de 100644 (file)
@@ -1,3 +1,8 @@
+2002-04-26  Andrew Cagney  <ac131313@redhat.com>
+
+       * rs6000-tdep.c (rs6000_gdbarch_init): Only set
+       convert_from_func_ptr-addr when AIX / PowerOpen.
+
 2002-04-25  Andrew Cagney  <ac131313@redhat.com>
 
        * valops.c (hand_function_call): Call
index 23130b83d5730666a4f7c0dbd2d2878a78520db8..97b936dd87323e1a92525922d8c255e005cac169 100644 (file)
@@ -2746,8 +2746,11 @@ rs6000_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
 
       set_gdbarch_frame_init_saved_regs (gdbarch, rs6000_frame_init_saved_regs);
       set_gdbarch_init_extra_frame_info (gdbarch, rs6000_init_extra_frame_info);
-
-      /* Handle RS/6000 function pointers.  */
+    }
+  if (!sysv_abi)
+    {
+      /* Handle RS/6000 function pointers (which are really function
+         descriptors).  */
       set_gdbarch_convert_from_func_ptr_addr (gdbarch,
        rs6000_convert_from_func_ptr_addr);
     }