/* Build symbol tables in GDB's internal format.
- Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1995, 1996,
- 1997, 1998, 1999, 2000, 2002, 2003, 2007, 2008, 2009, 2010
- Free Software Foundation, Inc.
+ Copyright (C) 1986-1993, 1995-2000, 2002-2003, 2007-2012 Free
+ Software Foundation, Inc.
This file is part of GDB.
struct linetable *line_vector;
int line_vector_length;
enum language language;
- char *producer;
- char *debugformat;
+ const char *producer;
+ const char *debugformat;
struct symtab *symtab;
};
#define INITIAL_TYPE_VECTOR_LENGTH 160
-extern void add_free_pendings (struct pending *list);
-
extern void add_symbol_to_list (struct symbol *symbol,
struct pending **listhead);
extern void start_symtab (char *name, char *dirname, CORE_ADDR start_addr);
-extern int hashname (char *name);
+extern int hashname (const char *name);
extern void free_pending_blocks (void);
-/* FIXME: Note that this is used only in buildsym.c and dstread.c,
- which should be fixed to not need direct access to
- record_pending_block. */
+/* Record the name of the debug format in the current pending symbol
+ table. FORMAT must be a string with a lifetime at least as long as
+ the symtab's objfile. */
-extern void record_pending_block (struct objfile *objfile,
- struct block *block,
- struct pending_block *opblock);
+extern void record_debugformat (const char *format);
-extern void record_debugformat (char *format);
+/* Record the name of the debuginfo producer (usually the compiler) in
+ the current pending symbol table. PRODUCER must be a string with a
+ lifetime at least as long as the symtab's objfile. */
extern void record_producer (const char *producer);