aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2021-11-20 21:32:41 -0500
committerSimon Marchi <simon.marchi@efficios.com>2022-02-06 16:03:46 -0500
commit012cfab919e7da355b2ac7f86674211cbce26041 (patch)
treeda86dca9362d26fd408ce24b08dd8679a6c91769 /gdb/python
parent1ee2e9f9304d05f2962bbc4b83096b850fe4e433 (diff)
downloadbinutils-012cfab919e7da355b2ac7f86674211cbce26041.zip
binutils-012cfab919e7da355b2ac7f86674211cbce26041.tar.gz
binutils-012cfab919e7da355b2ac7f86674211cbce26041.tar.bz2
gdb: remove SYMTAB_BLOCKVECTOR macro
Remove the macro, replace with an equivalent method. Change-Id: Id6fe2a79c04bcd6c69ccaefb7a69bc06a476288c
Diffstat (limited to 'gdb/python')
-rw-r--r--gdb/python/py-symtab.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/python/py-symtab.c b/gdb/python/py-symtab.c
index b5d102c..33657f1 100644
--- a/gdb/python/py-symtab.c
+++ b/gdb/python/py-symtab.c
@@ -181,7 +181,7 @@ stpy_global_block (PyObject *self, PyObject *args)
STPY_REQUIRE_VALID (self, symtab);
- blockvector = SYMTAB_BLOCKVECTOR (symtab);
+ blockvector = symtab->blockvector ();
block = BLOCKVECTOR_BLOCK (blockvector, GLOBAL_BLOCK);
return block_to_block_object (block, SYMTAB_OBJFILE (symtab));
}
@@ -197,7 +197,7 @@ stpy_static_block (PyObject *self, PyObject *args)
STPY_REQUIRE_VALID (self, symtab);
- blockvector = SYMTAB_BLOCKVECTOR (symtab);
+ blockvector = symtab->blockvector ();
block = BLOCKVECTOR_BLOCK (blockvector, STATIC_BLOCK);
return block_to_block_object (block, SYMTAB_OBJFILE (symtab));
}