diff options
author | Michael Snyder <msnyder@vmware.com> | 2011-03-01 21:46:42 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2011-03-01 21:46:42 +0000 |
commit | 18ea20acd440eb578fd9e38f26e52e53c0fd6428 (patch) | |
tree | ceca813e60980cf74e83e6578cdec5e36c52beef /gdb/std-regs.c | |
parent | d014929c516c2960d04d7bdb0f25c631219f7448 (diff) | |
download | gdb-18ea20acd440eb578fd9e38f26e52e53c0fd6428.zip gdb-18ea20acd440eb578fd9e38f26e52e53c0fd6428.tar.gz gdb-18ea20acd440eb578fd9e38f26e52e53c0fd6428.tar.bz2 |
2011-03-01 Michael Snyder <msnyder@vmware.com>
* std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
Diffstat (limited to 'gdb/std-regs.c')
-rw-r--r-- | gdb/std-regs.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gdb/std-regs.c b/gdb/std-regs.c index 647dd0d..486b919 100644 --- a/gdb/std-regs.c +++ b/gdb/std-regs.c @@ -70,11 +70,8 @@ value_of_builtin_frame_pc_reg (struct frame_info *frame, const void *baton) struct value *val = allocate_value (func_ptr_type); gdb_byte *buf = value_contents_raw (val); - if (frame == NULL) - memset (buf, 0, TYPE_LENGTH (value_type (val))); - else - gdbarch_address_to_pointer (gdbarch, func_ptr_type, - buf, get_frame_pc (frame)); + gdbarch_address_to_pointer (gdbarch, func_ptr_type, + buf, get_frame_pc (frame)); return val; } } |