This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH/RFA] Include sh64 support for shle-*-netbsdelf*
Hi Elena,
> > > The tdep gdb file is going to be built for all the sh targets. And
> > > that file requires the sh64 disassembly functions.
> >
> > In which case there may well be a problem. As it stands configuring
> > BFD as, eg, sh3-elf will not bring in the sh64 architecture or
> > disassembly functions. Can the tdep file be made conditional on the
> > SH architecture specified on the configure command line ?
> >
>
> No, it wouldn't be accepted. We are going towards unifying all the
> targets for a given architecture, so that we can switch at runtime
> with multiarch. I mean, it is not technically impossible, but it is
> philosophically inconsistent with where gdb is going nowadays. We are
> even going to build multiple architectures together, like sh and ppc,
> in a single executable. As a matter of fact I had such defines when I
> first submitted the port, and I removed them.
Hmm, OK - in which case would it be acceptable to say that in order to
obtain GDB support an SH toolchain should be configured as "sh-elf"
and not "sh3-elf" even if the intended default processor is the SH3 ?
ie that configurations such as "sh3-elf" are becoming obsolete and
will one day be removed ?
Cheers
Nick