From: Andrew Cagney Date: Fri, 26 Apr 2002 04:31:47 +0000 (+0000) Subject: * rs6000-tdep.c (rs6000_gdbarch_init): Only set X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=15813d3f2cdcadbf40b08dc5e852bc5913f18c0e;p=binutils-gdb.git * rs6000-tdep.c (rs6000_gdbarch_init): Only set convert_from_func_ptr-addr when AIX / PowerOpen. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e91880f33f1..924425dd062 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2002-04-26 Andrew Cagney + + * rs6000-tdep.c (rs6000_gdbarch_init): Only set + convert_from_func_ptr-addr when AIX / PowerOpen. + 2002-04-25 Andrew Cagney * valops.c (hand_function_call): Call diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c index 23130b83d57..97b936dd873 100644 --- a/gdb/rs6000-tdep.c +++ b/gdb/rs6000-tdep.c @@ -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); }