This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: can't build cross-gdb for --target=mips-sgi-irix6
- From: Kevin Buettner <kevinb at redhat dot com>
- To: Alexandre Oliva <aoliva at redhat dot com>, gdb-patches at sources dot redhat dot com
- Date: Tue, 1 Oct 2002 18:08:05 -0700
- Subject: Re: can't build cross-gdb for --target=mips-sgi-irix6
- References: <or3crpy894.fsf@free.redhat.lsd.ic.unicamp.br>
On Oct 1, 9:49pm, Alexandre Oliva wrote:
> mips-sgi-irix6-gdb (5.3 branch and mainline) failed to link on
> athlon-pc-linux-gnu. breakpoint.c didn't to compile in
> disable_breakpoints_in_shlibs() because SOLIB_ADD was not defined. I
> think solib.h must be #included somewhere, and I think the right place
> is config/mips/tm-irix6.h. I couldn't test this natively, because I
> don't have access to any irix box at the moment, but the cross
> debugger built correctly with this patch. Ok to install?
Yes.
Normally, we also try to remove the #include of solib.h from the
appropriate nm-*.h files. However, we can't easily do that for
Irix since nm-irix6.h includes nm-irix5.h which includes
config/nm-sysv4.h. This latter file is used by a lot of other
platforms. Once our Irix system is running again, I'll see if
I can figure out what should be done so that solib.h isn't included
more than once. (Including it more than once is safe though because
solib.h protects itself from multiple inclusions.)
Thanks,
Kevin