Re: PATCH: Problem union comparision in TUI

Eli Zaretskii
2005-10-24T11:06:36Z

> Date: Mon, 24 Oct 2005 11:26:04 +0100
> From: Andrew STUBBS <andrew.stubbs@st.com>
> Cc: gdb-patches@sources.redhat.com
>
> Eli Zaretskii wrote:
> > Why didn't you test l.loa to be LOA_ADDRESS before comparing the
> > addresses?
>
> In theory it must be na address if it isn't a line. If it wasn't an
> address then what should the code do?

It should use gdb_assert to signal a fatal internal error. If that
error is ever reported, we will have a recipe to reproduce the bug,
and then we could fix it.