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: [commit/Ada] Use our builtin type when evaluating conditional expressions


>>>>> "Joel" == Joel Brobecker <brobecker@adacore.com> writes:

Joel>     (gdb) p null /= null

Jerome> The problem comes from the fact that GDB casts "null /= null"
Jerome> into the language boolean type (i.e. "standard.boolean"). And
Jerome> it lookups the boolean type into the debug info of the
Jerome> application. As type boolean is defined in every compilation
Jerome> unit, every psymtabs matchs; as a consequence, all the
Jerome> corresponding symtabs are built. This roughly means that the
Jerome> debugger loads every symbols when evaluating a conditional
Jerome> expression.

I'm curious whether this will be a problem for any language defining
bool_type_symbol.  If so, perhaps a language-neutral fix could be
found.  If not, what is it that makes this specific to Ada?

Tom


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