* std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
value type to builtin_type_void_func_ptr.
This commit is contained in:
parent
fb546a2f2e
commit
02b156f50c
@ -1,3 +1,8 @@
|
||||
2008-01-31 Joel Brobecker <brobecker@adacore.com>
|
||||
|
||||
* 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 <krebbel1@de.ibm.com>
|
||||
|
||||
* s390-tdep.c (is_float_singleton, is_float_like,
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user