This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] Fix for sparc-lynxos build
- From: Michael Snyder <msnyder at redhat dot com>
- To: "David S. Miller" <davem at redhat dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Tue, 23 Apr 2002 12:05:36 -0700
- Subject: Re: [RFA] Fix for sparc-lynxos build
- Organization: Red Hat, Inc.
- References: <20020421.232827.07700679.davem@redhat.com>
"David S. Miller" wrote:
>
> remote.c, if SOLIB_CREATE_INFERIOR_HOOK is define, calls
> no_shared_libraries. sparc-lynxos uses coff-solib.c which
> does not provide this function, thus the final link of the
> build fails.
>
> This adds a dummy definition so at least this target can link
> successfully, but keep a FIXME comment there so that this gets
> some attention in the future.
>
> Ok to install?
I'm worried that, once this goes in, it may never get fixed.
How about at least making it print a warning?
>
> 2002-04-21 David S. Miller <davem@redhat.com>
>
> * coff-solib.c (no_shared_libraries): Add dummy implementation.
>
> --- coff-solib.c.~1~ Thu Nov 1 08:17:08 2001
> +++ coff-solib.c Sun Apr 21 23:31:05 2002
> @@ -28,6 +28,24 @@
> #include "symfile.h"
> #include "objfiles.h"
>
> +/* LOCAL FUNCTION
> +
> + no_shared_libraries -- handle command to explicitly discard symbols
> + from shared libraries.
> +
> + DESCRIPTION
> +
> + Implements the command "nosharedlibrary", which discards symbols
> + that have been auto-loaded from shared libraries. Symbols from
> + shared libraries that were added by explicit request of the user
> + are not discarded. Also called from remote.c. */
> +
> +void
> +no_shared_libraries (char *ignored, int from_tty)
> +{
> + /* FIXME */
> +}
> +
> /*
>
> GLOBAL FUNCTION