Remove some unused buildsym functions
authorTom Tromey <tom@tromey.com>
Wed, 23 May 2018 04:44:44 +0000 (22:44 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 20 Jul 2018 15:42:55 +0000 (09:42 -0600)
Now that the DWARF reader uses the builder-based API, we can remove a
few "legacy" functions that were only ever called by it.

gdb/ChangeLog
2018-07-20  Tom Tromey  <tom@tromey.com>

* buildsym-legacy.h (augment_type_symtab): Don't declare.
(end_expandable_symtab): Likewise.
(end_symtab_get_static_block): Likewise.
(end_symtab_from_static_block): Likewise.
* buildsym-legacy.c (augment_type_symtab): Remove.
(end_expandable_symtab): Remove.
(end_symtab_get_static_block): Remove.
(end_symtab_from_static_block): Remove.

gdb/ChangeLog
gdb/buildsym-legacy.c
gdb/buildsym-legacy.h

index 80d15bd1482e0b6d26299ea13abb1d3c327e988e..9f9b8e3a11b6372c9fcc80a094e6804929d75527 100644 (file)
@@ -1,3 +1,14 @@
+2018-07-20  Tom Tromey  <tom@tromey.com>
+
+       * buildsym-legacy.h (augment_type_symtab): Don't declare.
+       (end_expandable_symtab): Likewise.
+       (end_symtab_get_static_block): Likewise.
+       (end_symtab_from_static_block): Likewise.
+       * buildsym-legacy.c (augment_type_symtab): Remove.
+       (end_expandable_symtab): Remove.
+       (end_symtab_get_static_block): Remove.
+       (end_symtab_from_static_block): Remove.
+
 2018-07-20  Tom Tromey  <tom@tromey.com>
 
        * dwarf2read.c: Include buildsym.h.
index 5ee663daee48c1641dee71e912705c5897eba394..3553fa1c0abaa89a7ed71a73e56290f1b4f64d9b 100644 (file)
@@ -194,14 +194,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 +205,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 +215,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)
 {
index 191c34478bae21514ae298215d5d292c85788c2a..aaa9152c4eb71760199ff384c1012ad902c0061d 100644 (file)
    The compunit symtab pointer ("cust") is returned from both start_symtab
    and end_symtab to simplify the debug info readers.
 
-   There are minor variations on this, e.g., dwarf2read.c splits end_symtab
-   into two calls: end_symtab_get_static_block, end_symtab_from_static_block,
-   but all debug info readers follow this basic flow.
-
-   Reading DWARF Type Units is another variation:
-
-   scoped_free_pendings free_pending;
-   cust = start_symtab (...);
-   ... read debug info ...
-   cust = end_expandable_symtab (...);
-
-   And then reading subsequent Type Units within the containing "Comp Unit"
-   will use a second flow:
-
-   scoped_free_pendings free_pending;
-   cust = restart_symtab (...);
-   ... read debug info ...
-   cust = augment_type_symtab (...);
-
    dbxread.c and xcoffread.c use another variation:
 
    scoped_free_pendings free_pending;
@@ -92,21 +73,8 @@ extern void push_subfile ();
 
 extern const char *pop_subfile ();
 
-extern struct block *end_symtab_get_static_block (CORE_ADDR end_addr,
-                                                 int expandable,
-                                                 int required);
-
-extern struct compunit_symtab *
-  end_symtab_from_static_block (struct block *static_block,
-                               int section, int expandable);
-
 extern struct compunit_symtab *end_symtab (CORE_ADDR end_addr, int section);
 
-extern struct compunit_symtab *end_expandable_symtab (CORE_ADDR end_addr,
-                                                     int section);
-
-extern void augment_type_symtab (void);
-
 extern struct context_stack *push_context (int desc, CORE_ADDR valu);
 
 extern struct context_stack pop_context ();
This page took 0.032218 seconds and 4 git commands to generate.