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


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


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