[patch] Add proper error message instead of gdb_assert
Markus Deuling
deuling@de.ibm.com
Mon Mar 3 20:46:00 GMT 2008
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:
>>
>>> 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.
>
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?
--
Markus Deuling
GNU Toolchain for Linux on Cell BE
deuling@de.ibm.com
More information about the Gdb-patches
mailing list