GNU Binutils with patches for OS216
Revision | 5707a07af2c282e87af1b060b4463fc083775649 (tree) |
---|---|
Time | 2020-02-23 05:49:56 |
Author | Tom Tromey <tom@trom...> |
Commiter | Tom Tromey |
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.
@@ -1,5 +1,10 @@ | ||
1 | 1 | 2020-02-22 Tom Tromey <tom@tromey.com> |
2 | 2 | |
3 | + * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare. | |
4 | + * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static. | |
5 | + | |
6 | +2020-02-22 Tom Tromey <tom@tromey.com> | |
7 | + | |
3 | 8 | * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window. |
4 | 9 | |
5 | 10 | 2020-02-22 Tom Tromey <tom@tromey.com> |
@@ -2881,7 +2881,7 @@ get_ax_pc (void *baton) | ||
2881 | 2881 | example, if the expression cannot be compiled, or if the expression |
2882 | 2882 | is invalid. */ |
2883 | 2883 | |
2884 | -void | |
2884 | +static void | |
2885 | 2885 | dwarf2_compile_expr_to_ax (struct agent_expr *expr, struct axs_value *loc, |
2886 | 2886 | unsigned int addr_size, const gdb_byte *op_ptr, |
2887 | 2887 | const gdb_byte *op_end, |
@@ -242,26 +242,6 @@ extern const struct symbol_computed_ops dwarf2_loclist_funcs; | ||
242 | 242 | extern const struct symbol_block_ops dwarf2_block_frame_base_locexpr_funcs; |
243 | 243 | extern const struct symbol_block_ops dwarf2_block_frame_base_loclist_funcs; |
244 | 244 | |
245 | -/* Compile a DWARF location expression to an agent expression. | |
246 | - | |
247 | - EXPR is the agent expression we are building. | |
248 | - LOC is the agent value we modify. | |
249 | - ARCH is the architecture. | |
250 | - ADDR_SIZE is the size of addresses, in bytes. | |
251 | - OP_PTR is the start of the location expression. | |
252 | - OP_END is one past the last byte of the location expression. | |
253 | - | |
254 | - This will throw an exception for various kinds of errors -- for | |
255 | - example, if the expression cannot be compiled, or if the expression | |
256 | - is invalid. */ | |
257 | - | |
258 | -extern void dwarf2_compile_expr_to_ax (struct agent_expr *expr, | |
259 | - struct axs_value *loc, | |
260 | - unsigned int addr_size, | |
261 | - const gdb_byte *op_ptr, | |
262 | - const gdb_byte *op_end, | |
263 | - struct dwarf2_per_cu_data *per_cu); | |
264 | - | |
265 | 245 | /* Determined tail calls for constructing virtual tail call frames. */ |
266 | 246 | |
267 | 247 | struct call_site_chain |