aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2020-02-22 13:49:56 -0700
committerTom Tromey <tom@tromey.com>2020-02-22 13:49:56 -0700
commit5707a07af2c282e87af1b060b4463fc083775649 (patch)
tree02178e249cb577225deee8e4197c6913c77f4037 /gdb/dwarf2
parent3b0fb49e305511c0f68d588bb8cf1a250ecd76f9 (diff)
downloadgdb-5707a07af2c282e87af1b060b4463fc083775649.zip
gdb-5707a07af2c282e87af1b060b4463fc083775649.tar.gz
gdb-5707a07af2c282e87af1b060b4463fc083775649.tar.bz2
Make dwarf2_compile_expr_to_ax static
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.
Diffstat (limited to 'gdb/dwarf2')
-rw-r--r--gdb/dwarf2/loc.c2
-rw-r--r--gdb/dwarf2/loc.h20
2 files changed, 1 insertions, 21 deletions
diff --git a/gdb/dwarf2/loc.c b/gdb/dwarf2/loc.c
index a9523e9..a5074da 100644
--- a/gdb/dwarf2/loc.c
+++ b/gdb/dwarf2/loc.c
@@ -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,
diff --git a/gdb/dwarf2/loc.h b/gdb/dwarf2/loc.h
index 8fff663..4514fa9 100644
--- a/gdb/dwarf2/loc.h
+++ b/gdb/dwarf2/loc.h
@@ -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