2001-04-03 David Mosberger <davidm@hpl.hp.com>
[deliverable/binutils-gdb.git] / gdb / symfile.h
index 177085b13d52489487812eaa9481dfba0823f76d..36447d7e526e207b38747bc8e139fb3475832c3f 100644 (file)
@@ -1,5 +1,6 @@
 /* Definitions for reading symbol files into GDB.
-   Copyright (C) 1990, 1991, 1992, 1993, 1994, 1996
+   Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
+   2000, 2001
    Free Software Foundation, Inc.
 
    This file is part of GDB.
@@ -61,10 +62,10 @@ struct psymbol_allocation_list
    solib.c to communicate the section addresses in shared objects to
    symbol_file_add (). */
  
-#define MAX_SECTIONS 40
+#define MAX_SECTIONS 64
 struct section_addr_info 
 {
-  /* Sections whose names are file format dependant. */
+  /* Sections whose names are file format dependent. */
   struct other_sections
   {
     CORE_ADDR addr;
@@ -88,13 +89,13 @@ struct sym_fns
        called during symbol_file_add, when we begin debugging an entirely new
        program. */
 
-    void (*sym_new_init) PARAMS ((struct objfile *));
+    void (*sym_new_init) (struct objfile *);
 
     /* Reads any initial information from a symbol file, and initializes the
        struct sym_fns SF in preparation for sym_read().  It is called every
        time we read a symbol file for any reason. */
 
-    void (*sym_init) PARAMS ((struct objfile *));
+    void (*sym_init) (struct objfile *);
 
     /* sym_read (objfile, mainline)
        Reads a symbol file into a psymtab (or possibly a symtab).
@@ -104,12 +105,12 @@ struct sym_fns
        symbol file (e.g. shared library or dynamically loaded file)
        is being read.  */
 
-    void (*sym_read) PARAMS ((struct objfile *, int));
+    void (*sym_read) (struct objfile *, int);
 
     /* Called when we are finished with an objfile.  Should do all cleanup
        that is specific to the object file format for the particular objfile. */
 
-    void (*sym_finish) PARAMS ((struct objfile *));
+    void (*sym_finish) (struct objfile *);
 
     /* This function produces a file-dependent section_offsets structure,
        allocated in the objfile's storage, and based on the parameter.
@@ -118,7 +119,7 @@ struct sym_fns
        a string, where NULL means the default, and others are parsed in a file
        dependent way. */
 
-    void (*sym_offsets) PARAMS ((struct objfile *, struct section_addr_info *));
+    void (*sym_offsets) (struct objfile *, struct section_addr_info *);
 
     /* Finds the next struct sym_fns.  They are allocated and initialized
        in whatever module implements the functions pointed to; an 
@@ -273,6 +274,12 @@ extern CORE_ADDR overlay_unmapped_address (CORE_ADDR, asection *);
 /* convert an address in an overlay section (force into VMA range) */
 extern CORE_ADDR symbol_overlayed_address (CORE_ADDR, asection *);
 
+/* Load symbols from a file. */
+extern void symbol_file_add_main (char *args, int from_tty);
+
+/* Clear GDB symbol tables. */
+extern void symbol_file_clear (int from_tty);
+
 /* From dwarfread.c */
 
 extern void
This page took 0.023613 seconds and 4 git commands to generate.