[RFA] Fix for sparc-lynxos build
Michael Snyder
msnyder@redhat.com
Tue Apr 23 12:17:00 GMT 2002
"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
More information about the Gdb-patches
mailing list