This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Suspicious line in ada-lang.c
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: gdb at sources dot redhat dot com
- Date: Sun, 29 Sep 2002 20:35:21 -0400
- Subject: Suspicious line in ada-lang.c
I noticed this today:
TYPE_LENGTH (rtype) += TYPE_LENGTH (branch_type);
-TYPE_LENGTH (TYPE_FIELD_TYPE (type, nfields - 1));
Extra semicolon maybe?
I've also confirmed my impression that ada-lang (and jv-lang to a lesser
degree) know too much about types. They eventually should be cleaned up to
use methods from gdbtypes.c - probably many of the methods they need don't
exist, but still. The same thing is somewhat true of the symbol readers.
Modifying the type structure right now is a real chore.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer