From 4359dff1c517dc398912c8d3be440b711881b6d6 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Fri, 13 Jul 2012 20:26:11 +0000 Subject: gdb/ * buildsym.c (end_symtab_1): Split it to ... (end_symtab_get_static_block): ... this ... (end_symtab_from_static_block): ... and this function. (end_symtab, end_expandable_symtab): Call them. * buildsym.h (end_symtab_get_static_block) (end_symtab_from_static_block): New declarations. * dwarf2read.c (process_full_comp_unit): New variable static_block. Set its valid CU ranges. gdb/testsuite/ * gdb.dwarf2/dw2-minsym-in-cu.S: New file. * gdb.dwarf2/dw2-minsym-in-cu.exp: New file. --- gdb/buildsym.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gdb/buildsym.h') diff --git a/gdb/buildsym.h b/gdb/buildsym.h index df5cc93..162ee8c 100644 --- a/gdb/buildsym.h +++ b/gdb/buildsym.h @@ -258,6 +258,15 @@ extern void push_subfile (void); extern char *pop_subfile (void); +extern struct block *end_symtab_get_static_block (CORE_ADDR end_addr, + struct objfile *objfile, + int expandable); + +extern struct symtab *end_symtab_from_static_block (struct block *static_block, + struct objfile *objfile, + int section, + int expandable); + extern struct symtab *end_symtab (CORE_ADDR end_addr, struct objfile *objfile, int section); -- cgit v1.1