aboutsummaryrefslogtreecommitdiff
path: root/gdb/psympriv.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-01-14 20:51:48 +0000
committerTom Tromey <tromey@redhat.com>2013-01-14 20:51:48 +0000
commitc9bf062262da5a158d7a74907f8db2cd6df6bdfd (patch)
tree006b1942db2e0074c7eb49f272b88d7cc7839af0 /gdb/psympriv.h
parent44d594fd828c1ba491e387ad0b06d68f5fd1b342 (diff)
downloadgdb-c9bf062262da5a158d7a74907f8db2cd6df6bdfd.zip
gdb-c9bf062262da5a158d7a74907f8db2cd6df6bdfd.tar.gz
gdb-c9bf062262da5a158d7a74907f8db2cd6df6bdfd.tar.bz2
PR symtab/14931:
* psymtab.c (struct psymtab_state): New. (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New functions. * psympriv.h (make_cleanup_discard_psymtabs): Declare. * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions. gdb/testsuite * gdb.dwarf2/dw2-error.exp: New file. * gdb.dwarf2/dw2-error.c: New file. * gdb.dwarf2/dw2-error.S: New file.
Diffstat (limited to 'gdb/psympriv.h')
-rw-r--r--gdb/psympriv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/psympriv.h b/gdb/psympriv.h
index 46a1a9f..815cc08 100644
--- a/gdb/psympriv.h
+++ b/gdb/psympriv.h
@@ -231,6 +231,8 @@ extern struct partial_symtab *allocate_psymtab (const char *,
extern void discard_psymtab (struct objfile *, struct partial_symtab *);
+extern struct cleanup *make_cleanup_discard_psymtabs (struct objfile *);
+
/* Traverse all psymtabs in one objfile. */
#define ALL_OBJFILE_PSYMTABS(objfile, p) \