aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2011-04-04 15:19:59 +0000
committerTom Tromey <tromey@redhat.com>2011-04-04 15:19:59 +0000
commit00174a8637c5c42b77b190c38b1afa94c4c14517 (patch)
treee15de61016caa1be91047423ceeff6cd9031e94e /gdb/symtab.h
parent30cc903e7cd4678ec556d5386be55c3c726b6a27 (diff)
downloadgdb-00174a8637c5c42b77b190c38b1afa94c4c14517.zip
gdb-00174a8637c5c42b77b190c38b1afa94c4c14517.tar.gz
gdb-00174a8637c5c42b77b190c38b1afa94c4c14517.tar.bz2
* symtab.h (free_symtab): Remove.
(forget_cached_source_info_for_objfile): Declare. * symmisc.c (free_symtab): Remove. * source.c (forget_cached_source_info_for_objfile): New function. (forget_cached_source_info): Use it. * objfiles.c (free_objfile): Simplify check before calling clear_current_source_symtab_and_line. Call forget_cached_source_info_for_objfile.
Diffstat (limited to 'gdb/symtab.h')
-rw-r--r--gdb/symtab.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h
index e39f049..59bbe24 100644
--- a/gdb/symtab.h
+++ b/gdb/symtab.h
@@ -1165,8 +1165,6 @@ void maintenance_check_symtabs (char *, int);
void maintenance_print_statistics (char *, int);
-extern void free_symtab (struct symtab *);
-
/* Symbol-reading stuff in symfile.c and solib.c. */
extern void clear_solib (void);
@@ -1177,6 +1175,7 @@ extern int identify_source_line (struct symtab *, int, int, CORE_ADDR);
extern void print_source_lines (struct symtab *, int, int, int);
+extern void forget_cached_source_info_for_objfile (struct objfile *);
extern void forget_cached_source_info (void);
extern void select_source_symtab (struct symtab *);