gdb/testsuite/
[deliverable/binutils-gdb.git] / gdb / buildsym.c
index 1b7388464e7046d89dd8d38e70e95b175b04751c..a7f141eb5ddd9cf5d2896f79468fe7d3fbaf844c 100644 (file)
@@ -1,7 +1,5 @@
 /* Support routines for building symbol tables in GDB's internal format.
-   Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995,
-   1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2007, 2008, 2009,
-   2010, 2011 Free Software Foundation, Inc.
+   Copyright (C) 1986-2004, 2007-2012 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -112,11 +110,8 @@ add_free_pendings (struct pending *list)
       free_pendings = list;
     }
 }
-      
-/* Add a symbol to one of the lists of symbols.  While we're at it, if
-   we're in the C++ case and don't have full namespace debugging info,
-   check to see if it references an anonymous namespace; if so, add an
-   appropriate using directive.  */
+
+/* Add a symbol to one of the lists of symbols.  */
 
 void
 add_symbol_to_list (struct symbol *symbol, struct pending **listhead)
@@ -156,7 +151,7 @@ struct symbol *
 find_symbol_in_list (struct pending *list, char *name, int length)
 {
   int j;
-  char *pp;
+  const char *pp;
 
   while (list != NULL)
     {
@@ -1109,6 +1104,12 @@ end_symtab (CORE_ADDR end_addr, struct objfile *objfile, int section)
             the symbols.  */
          symtab->language = subfile->language;
 
+         /* Save the debug format string (if any) in the symtab.  */
+         symtab->debugformat = subfile->debugformat;
+
+         /* Similarly for the producer.  */
+         symtab->producer = subfile->producer;
+
          /* All symtabs for the main file and the subfiles share a
             blockvector, so we need to clear primary for everything
             but the main file.  */
@@ -1250,7 +1251,7 @@ pop_context (void)
 /* Compute a small integer hash code for the given name.  */
 
 int
-hashname (char *name)
+hashname (const char *name)
 {
     return (hash(name,strlen(name)) % HASHSIZE);
 }
This page took 0.0237540000000001 seconds and 4 git commands to generate.