• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Revision5707a07af2c282e87af1b060b4463fc083775649 (tree)
Time2020-02-23 05:49:56
AuthorTom Tromey <tom@trom...>
CommiterTom Tromey

Log Message

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.

Change Summary

Incremental Difference

--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
11 2020-02-22 Tom Tromey <tom@tromey.com>
22
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+
38 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
49
510 2020-02-22 Tom Tromey <tom@tromey.com>
--- a/gdb/dwarf2/loc.c
+++ b/gdb/dwarf2/loc.c
@@ -2881,7 +2881,7 @@ get_ax_pc (void *baton)
28812881 example, if the expression cannot be compiled, or if the expression
28822882 is invalid. */
28832883
2884-void
2884+static void
28852885 dwarf2_compile_expr_to_ax (struct agent_expr *expr, struct axs_value *loc,
28862886 unsigned int addr_size, const gdb_byte *op_ptr,
28872887 const gdb_byte *op_end,
--- a/gdb/dwarf2/loc.h
+++ b/gdb/dwarf2/loc.h
@@ -242,26 +242,6 @@ extern const struct symbol_computed_ops dwarf2_loclist_funcs;
242242 extern const struct symbol_block_ops dwarf2_block_frame_base_locexpr_funcs;
243243 extern const struct symbol_block_ops dwarf2_block_frame_base_loclist_funcs;
244244
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-
265245 /* Determined tail calls for constructing virtual tail call frames. */
266246
267247 struct call_site_chain