aboutsummaryrefslogtreecommitdiff
path: root/gdb/stabsread.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/stabsread.c
parent5f9c5a63ce38b103f778f54394c6a3d43b7ade90 (diff)
downloadfsf-binutils-gdb-5d0027b9bab7cbf5eb41a8c8ad1b9e4650d5f87e.zip
fsf-binutils-gdb-5d0027b9bab7cbf5eb41a8c8ad1b9e4650d5f87e.tar.gz
fsf-binutils-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/stabsread.c')
-rw-r--r--gdb/stabsread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/stabsread.c b/gdb/stabsread.c
index d3a1ae9..c6821f8 100644
--- a/gdb/stabsread.c
+++ b/gdb/stabsread.c
@@ -693,11 +693,11 @@ define_symbol (CORE_ADDR valu, const char *string, int desc, int type,
{
/* GCC 2.x puts the line number in desc. SunOS apparently puts in the
number of bytes occupied by a type or object, which we ignore. */
- SYMBOL_LINE (sym) = desc;
+ sym->set_line (desc);
}
else
{
- SYMBOL_LINE (sym) = 0; /* unknown */
+ sym->set_line (0); /* unknown */
}
sym->set_language (get_current_subfile ()->language,