From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cagney To: Andrew Cagney Cc: John Marshall , gdb-patches Subject: Re: [patch] make coff-solib.c compile Date: Thu, 28 Jun 2001 12:53:00 -0000 Message-id: <3B3B8B21.5080306@cygnus.com> References: <200006150321.UAA22785@kovalevskaya.palm.com> <3B3B88E6.3040300@cygnus.com> X-SW-Source: 2001-06/msg00472.html PS: It still doesn't build - gdb gets a linker error from the now familar: libgdb.a(remote.o): In function `remote_open_1': /home/scratch/GDB/src/gdb/remote.c:2197: undefined reference to `no_shared_libraries' libgdb.a(remote.o): In function `remote_async_open_1': /home/scratch/GDB/src/gdb/remote.c:2307: undefined reference to `no_shared_libraries' collect2: ld returned 1 exit status gmake: *** [gdb] Error 1 but that is an SEP :-) Andrew > I've checked this in. > > When building a cross debugger to eg m68k-lynxos (eg from > i686-pc-linux-gnu), coff-solib.c won't compile because there's no > definition of OBJF_SHARED. This gets it compiling. I'm not sure this is > the right place to #include these headers, but it does compare favourably > with the lists of #includes in the other *-solib.c files. > > John > > 2000-06-14 John Marshall > > * coff-solib.c: Include symfile.h and objfiles.h to make > OBJF_SHARED visible. > > --- gdb+dejagnu-20000614/gdb/coff-solib.c.orig Wed Jun 14 20:06:07 2000 > +++ gdb+dejagnu-20000614/gdb/coff-solib.c Wed Jun 14 20:06:22 2000 > @@ -25,6 +25,8 @@ > #include "bfd.h" > #include "gdbcore.h" > #include "symtab.h" > +#include "symfile.h" > +#include "objfiles.h" > > /*