This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Add proper error message instead of gdb_assert
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: deuling at de dot ibm dot com (Markus Deuling)
- Cc: gdb-patches at sourceware dot org (GDB Patches)
- Date: Mon, 3 Mar 2008 21:00:00 +0100 (CET)
- Subject: Re: [patch] Add proper error message instead of gdb_assert
Markus Deuling wrote:
> when trying to put > 1 values into an array (fortran subrange) which
> comes from a register, register_size is called with regnum == -1.
You need to fix the caller to not do this, then.
> This patch replaces that gdb_assert by a proper error message before
> exiting:
An "internal error" is neither more nor less "proper" than a failed
assertion. Both say "there's a bug in GDB", and neither should be
triggerable by normal user interaction.
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com