X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fbuildsym-legacy.c;h=d9c27ebc9562b25be8b700fd0357fd53c50a8b3c;hb=refs%2Fheads%2Fconcurrent-displaced-stepping-2020-04-01;hp=5ee663daee48c1641dee71e912705c5897eba394;hpb=80e649fcac86101a8a4581317e867e89de015d28;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/buildsym-legacy.c b/gdb/buildsym-legacy.c index 5ee663daee..d9c27ebc95 100644 --- a/gdb/buildsym-legacy.c +++ b/gdb/buildsym-legacy.c @@ -1,5 +1,5 @@ /* Legacy support routines for building symbol tables in GDB's internal format. - Copyright (C) 1986-2018 Free Software Foundation, Inc. + Copyright (C) 1986-2020 Free Software Foundation, Inc. This file is part of GDB. @@ -18,6 +18,7 @@ #include "defs.h" #include "buildsym-legacy.h" +#include "symtab.h" /* The work-in-progress of the compunit we are building. This is created first, before any subfiles by start_symtab. */ @@ -194,14 +195,6 @@ pop_subfile () return buildsym_compunit->pop_subfile (); } -struct block * -end_symtab_get_static_block (CORE_ADDR end_addr, int expandable, int required) -{ - gdb_assert (buildsym_compunit != nullptr); - return buildsym_compunit->end_symtab_get_static_block (end_addr, expandable, - required); -} - /* Delete the buildsym compunit. */ static void @@ -213,18 +206,6 @@ free_buildsym_compunit (void) buildsym_compunit = NULL; } -struct compunit_symtab * -end_symtab_from_static_block (struct block *static_block, - int section, int expandable) -{ - gdb_assert (buildsym_compunit != nullptr); - struct compunit_symtab *result - = buildsym_compunit->end_symtab_from_static_block (static_block, - section, expandable); - free_buildsym_compunit (); - return result; -} - struct compunit_symtab * end_symtab (CORE_ADDR end_addr, int section) { @@ -235,24 +216,6 @@ end_symtab (CORE_ADDR end_addr, int section) return result; } -struct compunit_symtab * -end_expandable_symtab (CORE_ADDR end_addr, int section) -{ - gdb_assert (buildsym_compunit != nullptr); - struct compunit_symtab *result - = buildsym_compunit->end_expandable_symtab (end_addr, section); - free_buildsym_compunit (); - return result; -} - -void -augment_type_symtab () -{ - gdb_assert (buildsym_compunit != nullptr); - buildsym_compunit->augment_type_symtab (); - free_buildsym_compunit (); -} - struct context_stack * push_context (int desc, CORE_ADDR valu) { @@ -289,7 +252,9 @@ void record_line (struct subfile *subfile, int line, CORE_ADDR pc) { gdb_assert (buildsym_compunit != nullptr); - buildsym_compunit->record_line (subfile, line, pc); + /* Assume every line entry is a statement start, that is a good place to + put a breakpoint for that line number. */ + buildsym_compunit->record_line (subfile, line, pc, true); } /* Start a new symtab for a new source file in OBJFILE. Called, for example, @@ -359,8 +324,6 @@ buildsym_compunit_symtab (void) struct macro_table * get_macro_table (void) { - struct objfile *objfile; - gdb_assert (buildsym_compunit != NULL); return buildsym_compunit->get_macro_table (); }