diff options
Diffstat (limited to 'gdb/dwarf2/die.h')
-rw-r--r-- | gdb/dwarf2/die.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/dwarf2/die.h b/gdb/dwarf2/die.h index 41ed600..cffb5cb 100644 --- a/gdb/dwarf2/die.h +++ b/gdb/dwarf2/die.h @@ -22,6 +22,7 @@ #include "complaints.h" #include "dwarf2/attribute.h" +#include "gdbsupport/next-iterator.h" /* This data structure holds a complete die structure. */ struct die_info @@ -103,6 +104,13 @@ struct die_info return 0; } + /* Return a range suitable for iterating over the children of this + DIE. */ + next_range<die_info> children () const + { + return next_range<die_info> (child); + } + /* DWARF-2 tag for this DIE. */ ENUM_BITFIELD(dwarf_tag) tag : 16; |