This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: m68k_register_virtual_type
- From: Andrew Cagney <ac131313 at redhat dot com>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Fri, 22 Nov 2002 10:33:05 -0500
- Subject: Re: m68k_register_virtual_type
- References: <jeptsxanah.fsf@sykes.suse.de>
Just FYI,
static struct type *
m68k_register_virtual_type (int regnum)
{
- if ((unsigned) regnum >= E_FPC_REGNUM)
+ if (regnum == E_FPI_REGNUM)
return lookup_pointer_type (builtin_type_void);
There are now:
builtin_type_void_data_ptr
builtin_type_void_code_ptr
available.
+ else if ((unsigned) regnum >= E_FPC_REGNUM)
+ return builtin_type_int;
builtin_type_int32 is better
else if ((unsigned) regnum >= FP0_REGNUM)
return builtin_type_long_double;
+ else if (regnum == PS_REGNUM)
+ return builtin_type_int
Ditto.
else if ((unsigned) regnum >= A0_REGNUM)
return lookup_pointer_type (builtin_type_void);
else
Andrew