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: [RFA] W.I.P. AltiVec ppc registers support.


Daniel Jacobowitz writes:
 > > > Unfortunately not. I thought the same, until I remembered about core
 > > > file debugging. That function is called by fetch_core_registers() in
 > > > core-aout.c.
 > > 
 > > Hmm... I wonder if Linux/PPC even needs this function in core-aout.c.
 > > Daniel J. is the expert on this stuff.  Daniel, doesn't Linux/PPC use
 > > core-regset.c instead?
 > 
 > I'd like to kill our use of core-aout.c.  Linux/PPC never used a.out
 > cores, but unfortunately core-aout.c defines register_addr () as a
 > wrapper for REGISTER_U_ADDR.  The last time I tried to remove
 > core-aout.c from a platform I got bitten.
 > 
 > I think, now that we are defining FETCH_INFERIOR_REGISTERS, we can do
 > without it - infptrace was the only big consumer I see remaining.  So
 > we might be OK without using core-aout.c at all now.
 

Going back to this topic....  Yes, core-aout.c is not needed if we
localize the fetch registers stuff to ppc-linux-nat.c. Turns out I was
getting errors killing the REGISTER_U_ADDR macro because I hadn't
removed core-aout.o from the makefile fragment.

I am in the process of testing a patch to just do this.
I'll submit it shortly.

Elena



 > My still-unsubmitted cross-core patches for PowerPC remove
 > core-regset.o also, and very unpleasantly turn ppc-linux-nat.c into a
 > target-dependant rather than native-dependant file, so that we can grub
 > through the gregsets by hand.  If you've got a better idea I'd love to
 > hear it :) It will be made somewhat easier by the destruction of
 > regmap[].
 > 
 > 
 > -- 
 > Daniel Jacobowitz                           Carnegie Mellon University
 > MontaVista Software                         Debian GNU/Linux Developer


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