[patch] Add proper error message instead of gdb_assert

Daniel Jacobowitz drow@false.org
Mon Mar 3 20:39:00 GMT 2008


On Mon, Mar 03, 2008 at 12:28:51PM -0800, Michael Snyder wrote:
> On Mon, 2008-03-03 at 20:55 +0100, Mark Kettenis wrote:
> 
> > 
> > Sorry, but I don't see why your error message is "proper".  The
> > gdb_assert() should never fail; the fact that it does means that you
> > have a bug elsewhere in gdb.
> 
> Isn't that what the "internal error" call is for?

gdb_assert calls internal_error anyway.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Gdb-patches mailing list