From 63d609debba854d08a515f73d0ad8e4ef8948370 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Sun, 6 Feb 2022 22:54:03 -0500 Subject: 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 --- gdb/symtab.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'gdb/symtab.h') diff --git a/gdb/symtab.h b/gdb/symtab.h index 4028335..8c2837c 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -1757,12 +1757,17 @@ struct compunit_symtab m_dirname = dirname; } + struct blockvector *blockvector () + { + return m_blockvector; + } + const struct blockvector *blockvector () const { return m_blockvector; } - void set_blockvector (const struct blockvector *blockvector) + void set_blockvector (struct blockvector *blockvector) { m_blockvector = blockvector; } @@ -1860,7 +1865,7 @@ struct compunit_symtab /* List of all symbol scope blocks for this symtab. It is shared among all symtabs in a given compilation unit. */ - const struct blockvector *m_blockvector; + struct blockvector *m_blockvector; /* Section in objfile->section_offsets for the blockvector and the linetable. Probably always SECT_OFF_TEXT. */ -- cgit v1.1