This is the mail archive of the
mailing list for the GDB project.
Re: [patch] Add proper error message instead of gdb_assert
Daniel Jacobowitz schrieb:
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:
Isn't that what the "internal error" call is for?
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.
gdb_assert calls internal_error anyway.
In my special case this error is recoverable so an "error" would be ok, too (beside the fact that
the bug has to be fixed :-) ).
Are there situations where a GDB run is unrecoverable broken when register_size is given the wrong regnum?
GNU Toolchain for Linux on Cell BE