This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH RFC] Make GNU/Linux/PPC port work again
- To: Michael Snyder <msnyder at cygnus dot com>
- Subject: Re: [PATCH RFC] Make GNU/Linux/PPC port work again
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Thu, 20 Jul 2000 16:08:36 +1000
- CC: Kevin Buettner <kevinb at cygnus dot com>, Nick Duffek <nsd at redhat dot com>, gdb-patches at sourceware dot cygnus dot com
- References: <1000719220642.ZM16166@ocotillo.lan> <39763610.9F8@cygnus.com>
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.
Andrew