]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Make dwarf2_compile_expr_to_ax static
authorTom Tromey <tom@tromey.com>
Sat, 22 Feb 2020 20:49:56 +0000 (13:49 -0700)
committerTom Tromey <tom@tromey.com>
Sat, 22 Feb 2020 20:49:56 +0000 (13:49 -0700)
I noticed that dwarf2_compile_expr_to_ax can be static.  Nothing
outside of loc.c calls it.

gdb/ChangeLog
2020-02-22  Tom Tromey  <tom@tromey.com>

* dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
* dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.

gdb/ChangeLog
gdb/dwarf2/loc.c
gdb/dwarf2/loc.h

index 1f604f76ee858e66f40e3f6c278f495691a6fffe..0a070dc9bbab99a51f108ade83307a206aa667b0 100644 (file)
@@ -1,3 +1,8 @@
+2020-02-22  Tom Tromey  <tom@tromey.com>
+
+       * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
+       * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
+
 2020-02-22  Tom Tromey  <tom@tromey.com>
 
        * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
index a9523e9f7ee400a4505443ad489cacba8dc976fa..a5074da8bf132eefa78546f3f6e8b17a3d4b4217 100644 (file)
@@ -2881,7 +2881,7 @@ get_ax_pc (void *baton)
    example, if the expression cannot be compiled, or if the expression
    is invalid.  */
 
-void
+static void
 dwarf2_compile_expr_to_ax (struct agent_expr *expr, struct axs_value *loc,
                           unsigned int addr_size, const gdb_byte *op_ptr,
                           const gdb_byte *op_end,
index 8fff663ebf9cd85a21997e36f7b5e1e859e2a29d..4514fa93c7b74aa042e2cdcc8047a4e64d3b9960 100644 (file)
@@ -242,26 +242,6 @@ extern const struct symbol_computed_ops dwarf2_loclist_funcs;
 extern const struct symbol_block_ops dwarf2_block_frame_base_locexpr_funcs;
 extern const struct symbol_block_ops dwarf2_block_frame_base_loclist_funcs;
 
-/* Compile a DWARF location expression to an agent expression.
-   
-   EXPR is the agent expression we are building.
-   LOC is the agent value we modify.
-   ARCH is the architecture.
-   ADDR_SIZE is the size of addresses, in bytes.
-   OP_PTR is the start of the location expression.
-   OP_END is one past the last byte of the location expression.
-   
-   This will throw an exception for various kinds of errors -- for
-   example, if the expression cannot be compiled, or if the expression
-   is invalid.  */
-
-extern void dwarf2_compile_expr_to_ax (struct agent_expr *expr,
-                                      struct axs_value *loc,
-                                      unsigned int addr_size,
-                                      const gdb_byte *op_ptr,
-                                      const gdb_byte *op_end,
-                                      struct dwarf2_per_cu_data *per_cu);
-
 /* Determined tail calls for constructing virtual tail call frames.  */
 
 struct call_site_chain