diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2022-02-06 22:54:03 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2022-04-27 22:05:03 -0400 |
commit | 63d609debba854d08a515f73d0ad8e4ef8948370 (patch) | |
tree | c5e6b2c9d4b48350c707316a48e69388524cdf66 /gdb/p-exp.y | |
parent | 6395b62847e581acc3e8fa179444b824d17b3d68 (diff) | |
download | fsf-binutils-gdb-63d609debba854d08a515f73d0ad8e4ef8948370.zip fsf-binutils-gdb-63d609debba854d08a515f73d0ad8e4ef8948370.tar.gz fsf-binutils-gdb-63d609debba854d08a515f73d0ad8e4ef8948370.tar.bz2 |
gdb: remove BLOCKVECTOR_BLOCK and BLOCKVECTOR_NBLOCKS macros
Replace with calls to blockvector::blocks, and the appropriate method
call on the returned array_view.
Change-Id: I04d1f39603e4d4c21c96822421431d9a029d8ddd
Diffstat (limited to 'gdb/p-exp.y')
-rw-r--r-- | gdb/p-exp.y | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/p-exp.y b/gdb/p-exp.y index ffa82f6..7c88df6 100644 --- a/gdb/p-exp.y +++ b/gdb/p-exp.y @@ -619,9 +619,8 @@ block : BLOCKNAME struct symtab *tem = lookup_symtab (copy.c_str ()); if (tem) - $$ = BLOCKVECTOR_BLOCK - (tem->compunit ()->blockvector (), - STATIC_BLOCK); + $$ = (tem->compunit ()->blockvector () + ->static_block ()); else error (_("No file or function \"%s\"."), copy.c_str ()); |