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]

Re: [PATCH RFC] Make GNU/Linux/PPC port work again


Andrew Cagney wrote:
> 
> Michael Snyder wrote:
> >
> > Kevin Buettner wrote:
> > >
> > > The patch below makes the GNU/Linux/PPC port work again.
> > >
> > > I haven't tested it with other Power or PowerPC targets or native
> > > configurations; it is possible that I inadvertently broke something...
> > > I'd appreciate it if those of you (hi Nick!) affected by this code
> > > would test it before I commit this patch.
> > >
> > > Long term, I'd like to introduce a new file called ppc-tdep.c which
> > > contains the generic target methods for the Power and PowerPC
> > > architectures.  (Much of the code in rs6000-tdep.c would be moved to
> > > this file.) rs6000-tdep.c would become an AIX specific file that knows
> > > about shared libraries, signal handlers, and anything else specific to
> > > AIX.  It would play the same role for AIX that ppc-linux-tdep.c plays
> > > for Linux.  (The other way to do it would be to remove the AIXisms
> > > from rs6000-tdep.c and create a new file named ppc-aix-tdep.c which
> > > knows about the AIXisms.)
> > >
> > >         * ppc-tdep.h: New file.
> >
> > What kind of stuff is in this header file,
> > that could not go into one or more of the
> > tm.h files?
> 
> FYI,
> 
> Long term, I'd expect both config/*/tm-*.h and the tm.h link to go -
> after all the'll only contain ``#define GDB_MULTI_ARCH NNN'' :-)
> Instead there'll be a new set of header files (ppc-tdep.h is as good a
> guess as any) that the arch variants (rs6000-tdep.c, ppc-lnx-tdep.c)
> would all include that target architecture specific header.

Well, I've now posted a patch that effectivly eliminates tm.h :-) 
Kevin, I can't see any reason to hold back on your changes.

Down the track, a re-think of how to break down an Native/ABI/ISA will
be needed but I think that can wait until we've a better understanding
of the problems.

Once concern, check you can build the patched system as a cross target
(solaris-X-linux-ppc and cygwin-X-rs6000-...) (and of course
X-powerpc-eabi :-)

	Andrew

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