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]
Other format: [Raw text]

Re: [RFA] Fix for sparc-lynxos build


"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


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