This is the mail archive of the gdb-patches@sourceware.org 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: powerpc-linux biarch corefile support


On Wed, Aug 29, 2007 at 04:55:56PM +0930, Alan Modra wrote:
> On Wed, Aug 29, 2007 at 01:03:05AM +0200, Ulrich Weigand wrote:
> > Also, you missed setting the gpr_size field in a couple of cases:
> > rs6000-aix-tdep.c:rs6000_aix32_reg_offsets
> > rs6000-aix-tdep.c:rs6000_aix64_reg_offsets
> > ppcobsd-nat.c:ppcobsd_reg_offsets
> 
> Oops, shame on me.  I'll fix that.

On looking at rs6000_aix64_reg_offsets, I noticed that xer_offset is
not a multiple of 8.  Apparently, AIX uses a 32-bit field for cr, xer,
and fpscr.  So it looks like I can't use gpr_size for any of these
registers in ppc_{supply,collect}_gregset.  Mind you, aix 64-bit gdb
is broken anyway due to these functions assuming the gprs were
32-bit.

-- 
Alan Modra
Australia Development Lab, IBM


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