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/frame.c | |
parent | 5f9c5a63ce38b103f778f54394c6a3d43b7ade90 (diff) | |
download | binutils-5d0027b9bab7cbf5eb41a8c8ad1b9e4650d5f87e.zip binutils-5d0027b9bab7cbf5eb41a8c8ad1b9e4650d5f87e.tar.gz binutils-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/frame.c')
-rw-r--r-- | gdb/frame.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/frame.c b/gdb/frame.c index 6e2f6b2..ce95cf8 100644 --- a/gdb/frame.c +++ b/gdb/frame.c @@ -2699,10 +2699,10 @@ find_frame_sal (frame_info *frame) gdb_assert (sym); symtab_and_line sal; - if (SYMBOL_LINE (sym) != 0) + if (sym->line () != 0) { sal.symtab = symbol_symtab (sym); - sal.line = SYMBOL_LINE (sym); + sal.line = sym->line (); } else /* If the symbol does not have a location, we don't know where |