aboutsummaryrefslogtreecommitdiff
path: root/gdb/std-regs.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2011-03-01 21:51:35 +0000
committerMichael Snyder <msnyder@vmware.com>2011-03-01 21:51:35 +0000
commit23ce9890d5abe0d19cda24998bb25b0ae2dfeaf9 (patch)
tree07b42dbd77df9099bd5c39d522f4d2983f182c04 /gdb/std-regs.c
parent18ea20acd440eb578fd9e38f26e52e53c0fd6428 (diff)
downloadgdb-23ce9890d5abe0d19cda24998bb25b0ae2dfeaf9.zip
gdb-23ce9890d5abe0d19cda24998bb25b0ae2dfeaf9.tar.gz
gdb-23ce9890d5abe0d19cda24998bb25b0ae2dfeaf9.tar.bz2
2011-03-01 Michael Snyder <msnyder@vmware.com>
* std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null. (value_of_builtin_frame_fp_reg): Ditto.
Diffstat (limited to 'gdb/std-regs.c')
-rw-r--r--gdb/std-regs.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gdb/std-regs.c b/gdb/std-regs.c
index 486b919..1054b89 100644
--- a/gdb/std-regs.c
+++ b/gdb/std-regs.c
@@ -48,11 +48,8 @@ value_of_builtin_frame_fp_reg (struct frame_info *frame, const void *baton)
struct value *val = allocate_value (data_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, data_ptr_type,
- buf, get_frame_base_address (frame));
+ gdbarch_address_to_pointer (gdbarch, data_ptr_type,
+ buf, get_frame_base_address (frame));
return val;
}
}