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]

Re: [patch/but] Fix -Werror probs remote.c, fixes bug


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);

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