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: [patch] Add proper error message instead of gdb_assert


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?

The fact that there's a bug somewhere else in gdb is not
necessarily a reason to abort the debugging session.
It COULD be that severe -- but I don't think we necessarily
need to assume it is.

If so, we might just about as well call abort from main, 
because there are *always* bugs somewhere else in gdb...
(1/2 <g>)





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