2010-06-29 Hui Zhu <teawater@gmail.com>
[binutils-gdb.git] / gdb / solist.h
index 573f73665120d0f01347ca19893996c07c50ece0..bcba0ad65b6871d224fe35923dec54e644aca4fd 100644 (file)
@@ -63,8 +63,12 @@ struct so_list
 
     bfd *abfd;
     char symbols_loaded;       /* flag: symbols read in yet? */
-    char from_tty;             /* flag: print msgs? */
-    struct objfile *objfile;   /* objfile for loaded lib */
+
+    /* objfile with symbols for a loaded library.  Target memory is read from
+       ABFD.  OBJFILE may be NULL either before symbols have been loaded, if
+       the file cannot be found or after the command "nosharedlibrary".  */
+    struct objfile *objfile;
+
     struct target_section *sections;
     struct target_section *sections_end;
 
@@ -117,7 +121,6 @@ struct target_so_ops
     /* Hook for looking up global symbols in a library-specific way.  */
     struct symbol * (*lookup_lib_global_symbol) (const struct objfile *objfile,
                                                 const char *name,
-                                                const char *linkage_name,
                                                 const domain_enum domain);
 
     /* Given two so_list objects, one from the GDB thread list
@@ -157,7 +160,6 @@ extern struct target_so_ops *current_target_so_ops;
 /* Handler for library-specific global symbol lookup in solib.c.  */
 struct symbol *solib_global_lookup (const struct objfile *objfile,
                                    const char *name,
-                                   const char *linkage_name,
                                    const domain_enum domain);
 
 #endif