diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2022-01-27 22:39:50 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2022-02-06 16:03:47 -0500 |
commit | 5d0027b9bab7cbf5eb41a8c8ad1b9e4650d5f87e (patch) | |
tree | b54cfc8279c1e0dbafcc9ba758bc62b1d5955c01 /gdb/mi | |
parent | 5f9c5a63ce38b103f778f54394c6a3d43b7ade90 (diff) | |
download | gdb-5d0027b9bab7cbf5eb41a8c8ad1b9e4650d5f87e.zip gdb-5d0027b9bab7cbf5eb41a8c8ad1b9e4650d5f87e.tar.gz gdb-5d0027b9bab7cbf5eb41a8c8ad1b9e4650d5f87e.tar.bz2 |
gdb: remove SYMBOL_LINE macro
Add a getter and a setter for a symbol's line. Remove the corresponding macro
and adjust all callers.
Change-Id: I229f2b8fcf938c07975f641361313a8761fad9a5
Diffstat (limited to 'gdb/mi')
-rw-r--r-- | gdb/mi/mi-symbol-cmds.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/mi/mi-symbol-cmds.c b/gdb/mi/mi-symbol-cmds.c index 6ed26d6..1b08854 100644 --- a/gdb/mi/mi-symbol-cmds.c +++ b/gdb/mi/mi-symbol-cmds.c @@ -74,8 +74,8 @@ output_debug_symbol (ui_out *uiout, enum search_domain kind, { ui_out_emit_tuple tuple_emitter (uiout, NULL); - if (SYMBOL_LINE (sym) != 0) - uiout->field_unsigned ("line", SYMBOL_LINE (sym)); + if (sym->line () != 0) + uiout->field_unsigned ("line", sym->line ()); uiout->field_string ("name", sym->print_name ()); if (kind == FUNCTIONS_DOMAIN || kind == VARIABLES_DOMAIN) |