This is the mail archive of the gdb-patches@sources.redhat.com 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: [RFC] s390-tdep.c: Define address class functions for s390x


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


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