From: Joel Brobecker Date: Thu, 31 Jan 2008 20:03:38 +0000 (+0000) Subject: * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=02b156f50ca62acc3096780fa59ec192547179d0;p=binutils-gdb.git * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned value type to builtin_type_void_func_ptr. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e4f36b5585e..3071eed2542 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2008-01-31 Joel Brobecker + + * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned + value type to builtin_type_void_func_ptr. + 2008-01-31 Andreas Krebbel * s390-tdep.c (is_float_singleton, is_float_like, diff --git a/gdb/std-regs.c b/gdb/std-regs.c index 1d30b4df166..5a7a68be9d6 100644 --- a/gdb/std-regs.c +++ b/gdb/std-regs.c @@ -61,12 +61,12 @@ value_of_builtin_frame_pc_reg (struct frame_info *frame, const void *baton) return value_of_register (gdbarch_pc_regnum (gdbarch), frame); else { - struct value *val = allocate_value (builtin_type_void_data_ptr); + struct value *val = allocate_value (builtin_type_void_func_ptr); gdb_byte *buf = value_contents_raw (val); if (frame == NULL) memset (buf, 0, TYPE_LENGTH (value_type (val))); else - gdbarch_address_to_pointer (gdbarch, builtin_type_void_data_ptr, + gdbarch_address_to_pointer (gdbarch, builtin_type_void_func_ptr, buf, get_frame_pc (frame)); return val; }