This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [patch/but] Fix -Werror probs remote.c, fixes bug
- To: Kevin Buettner <kevinb at cygnus dot com>
- Subject: Re: [patch/but] Fix -Werror probs remote.c, fixes bug
- From: Michael Snyder <msnyder at cygnus dot com>
- Date: Mon, 14 May 2001 11:46:10 -0700
- CC: Andrew Cagney <ac131313 at cygnus dot com>, GDB Patches <gdb-patches at sourceware dot cygnus dot com>
- Organization: Red Hat
- References: <3B000D0F.1080702@cygnus.com> <1010514181430.ZM6964@ocotillo.lan>
Kevin Buettner wrote:
>
> On May 14, 12:51pm, Andrew Cagney wrote:
>
> > For the extern I'm adding to solib.h, I'm kind of wondering if that is
> > the correct interface. Kevin? Feel free to clean up that exported
> > function.
>
> I've fixed the prototype to match the definition in solib.c.
>
> Michael S: Could I ask you to provide some comments regarding the
> purpose of no_shared_libraries()?
Done. See attached.
2001-05-14 Michael Snyder <msnyder@redhat.com>
* solib.c, solib.h: Add comment for function no_shared_libraries.
Index: solib.c
===================================================================
RCS file: /cvs/src/src/gdb/solib.c,v
retrieving revision 1.39
diff -c -3 -p -r1.39 solib.c
*** solib.c 2001/04/17 23:22:52 1.39
--- solib.c 2001/05/14 18:45:01
*************** sharedlibrary_command (char *args, int f
*** 809,814 ****
--- 809,826 ----
solib_add (args, from_tty, (struct target_ops *) 0);
}
+ /* 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)
{
Index: solib.h
===================================================================
RCS file: /cvs/src/src/gdb/solib.h,v
retrieving revision 1.6
diff -c -3 -p -r1.6 solib.h
*** solib.h 2001/05/14 18:09:05 1.6
--- solib.h 2001/05/14 18:45:01
*************** extern char *solib_address (CORE_ADDR);
*** 194,197 ****
--- 194,199 ----
extern int in_solib_dynsym_resolve_code (CORE_ADDR); /* solib.c */
+ /* Discard symbols that were auto-loaded from shared libraries. */
+
extern void no_shared_libraries (char *ignored, int from_tty);