* std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
(value_of_builtin_frame_fp_reg): Ditto.
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.
* event-top.c (display_gdb_prompt): Remove superfluous null check.
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;
}
}