aboutsummaryrefslogtreecommitdiff
path: root/gdb/block.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-04-16 09:10:02 -0600
committerTom Tromey <tom@tromey.com>2023-05-07 12:44:17 -0600
commit8e8d48f91c26cb4aabbdc56d96608e5d2310b986 (patch)
treeebce18957e2404e7dcd07c5784457107f021218c /gdb/block.h
parent5250cbc85cbbf13221ed508c1b89f1ee0a6ac1ec (diff)
downloadgdb-8e8d48f91c26cb4aabbdc56d96608e5d2310b986.zip
gdb-8e8d48f91c26cb4aabbdc56d96608e5d2310b986.tar.gz
gdb-8e8d48f91c26cb4aabbdc56d96608e5d2310b986.tar.bz2
Remove ALL_DICT_SYMBOLS
This replaces ALL_DICT_SYMBOLS with an iterator so that for-each can be used.
Diffstat (limited to 'gdb/block.h')
-rw-r--r--gdb/block.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/block.h b/gdb/block.h
index cdcee08..f132d35 100644
--- a/gdb/block.h
+++ b/gdb/block.h
@@ -143,6 +143,10 @@ struct block : public allocate_on_obstack
multidictionary *multidict () const
{ return m_multidict; }
+ /* Return an iterator range for this block's multidict. */
+ iterator_range<mdict_iterator_wrapper> multidict_symbols () const
+ { return iterator_range<mdict_iterator_wrapper> (m_multidict); }
+
/* Set this block's multidict. */
void set_multidict (multidictionary *multidict)
{ m_multidict = multidict; }