This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] Re: x86-64-tdep.h cleanup
On Mar 6, 6:24pm, Andreas Schwab wrote:
> Michal Ludvig <mludvig@suse.cz> writes:
>
> |> Andreas Schwab wrote:
> |> > I think the registration of the Linux specific gdbarch functions should be
> |> > moved to x86-64-linux-tdep.c.
> |>
> |> It seems reasonable. Perhaps I can do it like in the attachment?
>
> No, x86-64-tdep.c should not have _any_ reference to
> x86-64-linux-tdep.c. The former must be usable without the latter.
How is that possible though? I've studied this problem for other
targets and have (up to now, anyway) concluded that the main tdep.c
file is going to need to know about the (OS or ABI) variants in some
fashion.
Kevin