summaryrefslogtreecommitdiff
path: root/gdb/python
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/python
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/python')
-rw-r--r--gdb/python/py-symbol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/python/py-symbol.c b/gdb/python/py-symbol.c
index 747da481a1b..819a51f7e41 100644
--- a/gdb/python/py-symbol.c
+++ b/gdb/python/py-symbol.c
@@ -221,7 +221,7 @@ sympy_line (PyObject *self, void *closure)
SYMPY_REQUIRE_VALID (self, symbol);
- return gdb_py_object_from_longest (SYMBOL_LINE (symbol)).release ();
+ return gdb_py_object_from_longest (symbol->line ()).release ();
}
/* Implementation of gdb.Symbol.is_valid (self) -> Boolean.