[rfa] std-regs.c, value_of_builtin_frame_pc_reg, don't bother checking for null frame.
Pedro Alves
pedro@codesourcery.com
Tue Mar 1 21:52:00 GMT 2011
On Tuesday 01 March 2011 21:39:59, Pedro Alves wrote:
> On Tuesday 01 March 2011 20:47:00, Michael Snyder wrote:
> > If frame is null, we will have crashed already from dereferencing it.
>
> Yeah, looks like a left over from before the "there's always
> a frame" changes years ago.
>
> > reversenull3.txt
> > 2011-03-01 Michael Snyder <msnyder@vmware.com>
> >
> > * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
>
> Okay.
Similar dead code in value_of_builtin_frame_fp_reg btw.
--
Pedro Alves
More information about the Gdb-patches
mailing list