aboutsummaryrefslogtreecommitdiff
path: root/gdb/std-regs.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2008-01-31 20:03:38 +0000
committerJoel Brobecker <brobecker@gnat.com>2008-01-31 20:03:38 +0000
commit02b156f50ca62acc3096780fa59ec192547179d0 (patch)
treedd4ee64e5a4db10ea10f1d627028f62f8dc4a52c /gdb/std-regs.c
parentfb546a2f2ea099330fb2ec4f9bf168c867bdc9e8 (diff)
downloadgdb-02b156f50ca62acc3096780fa59ec192547179d0.zip
gdb-02b156f50ca62acc3096780fa59ec192547179d0.tar.gz
gdb-02b156f50ca62acc3096780fa59ec192547179d0.tar.bz2
* std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
value type to builtin_type_void_func_ptr.
Diffstat (limited to 'gdb/std-regs.c')
-rw-r--r--gdb/std-regs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/std-regs.c b/gdb/std-regs.c
index 1d30b4d..5a7a68b 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;
}