summaryrefslogtreecommitdiff
path: root/gdb/frame.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2022-01-27 22:39:50 -0500
committerSimon Marchi <simon.marchi@efficios.com>2022-02-06 16:03:47 -0500
commit5d0027b9bab7cbf5eb41a8c8ad1b9e4650d5f87e (patch)
treeb54cfc8279c1e0dbafcc9ba758bc62b1d5955c01 /gdb/frame.c
parent5f9c5a63ce38b103f778f54394c6a3d43b7ade90 (diff)
downloadbinutils-gdb-5d0027b9bab7cbf5eb41a8c8ad1b9e4650d5f87e.tar.gz
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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/frame.c b/gdb/frame.c
index 6e2f6b245a2..ce95cf8343b 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