This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch/ob] Return type length of virtual type
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Thu, 13 Dec 2001 15:47:56 -0800
- Subject: [patch/ob] Return type length of virtual type
FYI,
I checked in the attached.
Andrew
2001-12-13 Andrew Cagney <ac131313@redhat.com>
* arch-utils.c (generic_register_virtual_size): Return TYPE_LENGTH
of register's type.
Index: arch-utils.c
===================================================================
RCS file: /cvs/src/src/gdb/arch-utils.c,v
retrieving revision 1.41
diff -p -r1.41 arch-utils.c
*** arch-utils.c 2001/12/11 22:15:53 1.41
--- arch-utils.c 2001/12/13 23:46:05
*************** generic_register_raw_size (int regnum)
*** 392,398 ****
int
generic_register_virtual_size (int regnum)
{
! return REGISTER_VIRTUAL_TYPE (regnum);
}
--- 392,398 ----
int
generic_register_virtual_size (int regnum)
{
! return TYPE_LENGTH (REGISTER_VIRTUAL_TYPE (regnum));
}