Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* gdb_assert will never be triggered
@ 2004-07-22  2:39 Joel Brobecker
  2004-07-22  3:20 ` Andrew Cagney
  0 siblings, 1 reply; 4+ messages in thread
From: Joel Brobecker @ 2004-07-22  2:39 UTC (permalink / raw)
  To: gdb-patches

Hello,

While looking at frame.c:get_prev_frame(), I saw the following:

  if (this_frame == NULL)
    {
      [large comment snip'ed]
      frame_debug_got_null_frame (gdb_stdlog, this_frame, "this_frame NULL");
      return current_frame;
    }

  /* There is always a frame.  If this assertion fails, suspect that
     something should be calling get_selected_frame() or
     get_current_frame().  */
  gdb_assert (this_frame != NULL);

It looks like the assertion will always be true, due to the block
above... Do we want to keep this gdb_assert() call nonetheless?

-- 
Joel


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-07-29 22:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-22  2:39 gdb_assert will never be triggered Joel Brobecker
2004-07-22  3:20 ` Andrew Cagney
2004-07-22  3:25   ` Joel Brobecker
2004-07-29 22:56     ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox