This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFC] s390-tdep.c: Define address class functions for s390x
- From: Kevin Buettner <kevinb at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Mon, 3 Feb 2003 13:46:04 -0700
- Subject: Re: [RFC] s390-tdep.c: Define address class functions for s390x
- References: <1030127232625.ZM2026@localhost.localdomain>
On Jan 27, 4:26pm, Kevin Buettner wrote:
> The default pointer size for s390x is 64 bits. The patch below causes
> 32-bit pointer types obtained from (dwarf2) debug info to be stored as
> a separate type and to be qualified (in gdb's ptype output) as
> "@mode32". [Patches to gdbtypes.[hc] and dwarf2read.c which implement
> address class support have already been committed. They need to be
> revisited, however, because in the course of testing out this patch, I
> found a bug. More on that later...]
>
> Comments?
>
> * s390-tdep.c (s390_address_class_type_flags)
> (s390_address_class_type_flags_to_name)
> (s390_address_class_name_to_type_flags): New functions.
> (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
> ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
Committed.
With regard to the bug noted above, I've posted a patch which fixes it:
http://sources.redhat.com/ml/gdb-patches/2003-01/msg00790.html
Kevin