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/dwarf2 | |
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/dwarf2')
-rw-r--r-- | gdb/dwarf2/read.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index 3a22bcd..c063e7b 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -21727,7 +21727,7 @@ new_symbol (struct die_info *die, struct type *type, struct dwarf2_cu *cu, inlined_func ? DW_AT_call_line : DW_AT_decl_line, cu); if (attr != nullptr) - SYMBOL_LINE (sym) = attr->constant_value (0); + sym->set_line (attr->constant_value (0)); attr = dwarf2_attr (die, inlined_func ? DW_AT_call_file : DW_AT_decl_file, |