diff options
author | Joel Brobecker <brobecker@gnat.com> | 2008-01-31 20:03:38 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2008-01-31 20:03:38 +0000 |
commit | 8c98f2ed76c578ff5d810b4b0303db4f1e1dcdf0 (patch) | |
tree | d0a6383122cd87e83d9242a39e6dd72e339b93f0 /gdb/std-regs.c | |
parent | d114252ca45c0fef970adea435cc63d5e1c4178b (diff) | |
download | gdb-8c98f2ed76c578ff5d810b4b0303db4f1e1dcdf0.tar.gz |
* 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.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |