This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfa] std-regs.c, value_of_builtin_frame_pc_reg, don't bother checking for null frame.
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Cc: Michael Snyder <msnyder at vmware dot com>
- Date: Tue, 1 Mar 2011 21:39:59 +0000
- Subject: Re: [rfa] std-regs.c, value_of_builtin_frame_pc_reg, don't bother checking for null frame.
- References: <4D6D5B44.9020500@vmware.com>
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.
--
Pedro Alves