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]: fix netbsd/ns32k target


"J.T. Conklin" wrote:
> 
> I will be committing the enclosed patch.  This should fix the problems
> that Andrew encountered while building a ns32k-netbsd GDB on a FreeBSD
> host.

Thanks!

> The first was the FRAME_FIND_SAVED_REGS macro in config/ns32k/tm-umax.h
> mysteriously disappeared in May 1999.  As I mentioned last week, there
> was no ChangeLog entry, and because at that time the Cygnus repository
> was the master repository, I am unable to determine in what change this
> occured.  But since neither the umax nor any target that inherits from
> it (like netbsd/ns32k) can build without it, I can only assume that it's
> removal was inadvertant.  This patch restores the value to what it was
> before.

You can be fairly sure it was me that made the change, I'll dig up the
details when I've more bandwith available (I'm moving hemispheres).  It
would have occured during one of the multi-arch passes and yes it should
have had a ChangeLog entry so must have slipped through :-(

One thing I remember though.  Right at the start of the multi-arch
process I made a list of targets I could build.  Even at the start I
couldn't find a buildable ns32k target.  My notes read:

ns32k-netbsd native solib.c:37: a.out.h: No such file or directory
ns32k-pc532-mach3 native nm-m3.h:24: mach.h: No such file or directory

so even before I broke it, it was already broken :-(

> The other was that I jumped the gun and moved shared library support
> objects from NATDEPFILES to TDEPFILES for all NetBSD targets after
> the same had been done for GNU/Linux targets.  This turned out to be
> a mistake. Since shared library support has not yet been made host
> independent, it was impossible to build cross debuggers for NetBSD
> targets on some hosts.

I've a feeling that you weren't the only one.  Unless the host
dependency in the shared library code is fixed (that #include <link.h>
and its consequenses) a few other *-elf targets will also need to revert
that change.

Thanks again for fixing that target.   Don't forget to update
MAINTAINERS to indicate that it does build.

	Andrew

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