* symmisc.c (dump_symtab_1): Renamed from dump_symtab.
(dump_symtab): New function.
This commit is contained in:
parent
b7d4af3a12
commit
44b164c514
2 changed files with 23 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2005-06-03 Joel Brobecker <brobecker@adacore.com>
|
||||
|
||||
* symmisc.c (dump_symtab_1): Renamed from dump_symtab.
|
||||
(dump_symtab): New function.
|
||||
|
||||
2005-04-02 Joel Brobecker <brobecker@adacore.com>
|
||||
|
||||
* exceptions.h: Include ui-out.h.
|
||||
|
|
|
@ -440,7 +440,7 @@ dump_psymtab (struct objfile *objfile, struct partial_symtab *psymtab,
|
|||
}
|
||||
|
||||
static void
|
||||
dump_symtab (struct objfile *objfile, struct symtab *symtab,
|
||||
dump_symtab_1 (struct objfile *objfile, struct symtab *symtab,
|
||||
struct ui_file *outfile)
|
||||
{
|
||||
int i;
|
||||
|
@ -533,6 +533,22 @@ dump_symtab (struct objfile *objfile, struct symtab *symtab,
|
|||
}
|
||||
}
|
||||
|
||||
static void
|
||||
dump_symtab (struct objfile *objfile, struct symtab *symtab,
|
||||
struct ui_file *outfile)
|
||||
{
|
||||
enum language saved_lang;
|
||||
|
||||
/* Set the current language to the language of the symtab we're dumping
|
||||
because certain routines used during dump_symtab() use the current
|
||||
language to print an image of the symbol. We'll restore it later. */
|
||||
saved_lang = set_language (symtab->language);
|
||||
|
||||
dump_symtab_1 (objfile, symtab, outfile);
|
||||
|
||||
set_language (saved_lang);
|
||||
}
|
||||
|
||||
void
|
||||
maintenance_print_symbols (char *args, int from_tty)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue