aboutsummaryrefslogtreecommitdiff
path: root/gdb/buildsym.h
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2012-07-13 20:26:11 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2012-07-13 20:26:11 +0000
commit4359dff1c517dc398912c8d3be440b711881b6d6 (patch)
tree813b9515c5462684df9edc72b36f1f52dfc58286 /gdb/buildsym.h
parenta24f71abb4b5c2785619a809d6dfbe0ba42ef769 (diff)
downloadgdb-4359dff1c517dc398912c8d3be440b711881b6d6.zip
gdb-4359dff1c517dc398912c8d3be440b711881b6d6.tar.gz
gdb-4359dff1c517dc398912c8d3be440b711881b6d6.tar.bz2
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.
Diffstat (limited to 'gdb/buildsym.h')
-rw-r--r--gdb/buildsym.h9
1 files changed, 9 insertions, 0 deletions
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);