This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [rfa] std-regs.c, value_of_builtin_frame_pc_reg, don't bother checking for null frame.


Pedro Alves wrote:
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.



Got it. Checked in.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]