aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2021-11-19 22:31:55 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2022-02-06 15:48:19 -0500
commitc1e35bc9c6b9d7efe0f720394b1febe71bbc728b (patch)
tree8b0481da88602b1f00848f161d7493612ca179c8 /gdb/symtab.h
parentaf39c5c8749757724a0f62dcb51be59cf3ecc678 (diff)
downloadfsf-binutils-gdb-c1e35bc9c6b9d7efe0f720394b1febe71bbc728b.zip
fsf-binutils-gdb-c1e35bc9c6b9d7efe0f720394b1febe71bbc728b.tar.gz
fsf-binutils-gdb-c1e35bc9c6b9d7efe0f720394b1febe71bbc728b.tar.bz2
gdb: remove COMPUNIT_BLOCK_LINE_SECTION macro, add getter/setter
Add a getter and a setter for a compunit_symtab's block line section. Remove the corresponding macro and adjust all callers. Change-Id: I3eb1a323388ad55eae8bfa45f5bc4a08dc3df455
Diffstat (limited to 'gdb/symtab.h')
-rw-r--r--gdb/symtab.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h
index f9318ff..c59e3c3 100644
--- a/gdb/symtab.h
+++ b/gdb/symtab.h
@@ -1521,6 +1521,16 @@ struct compunit_symtab
m_blockvector = blockvector;
}
+ int block_line_section () const
+ {
+ return m_block_line_section;
+ }
+
+ void set_block_line_section (int block_line_section)
+ {
+ m_block_line_section = block_line_section;
+ }
+
/* Make PRIMARY_FILETAB the primary filetab of this compunit symtab.
PRIMARY_FILETAB must already be a filetab of this compunit symtab. */
@@ -1578,7 +1588,7 @@ struct compunit_symtab
/* Section in objfile->section_offsets for the blockvector and
the linetable. Probably always SECT_OFF_TEXT. */
- int block_line_section;
+ int m_block_line_section;
/* Symtab has been compiled with both optimizations and debug info so that
GDB may stop skipping prologues as variables locations are valid already
@@ -1616,7 +1626,6 @@ struct compunit_symtab
using compunit_symtab_range = next_range<compunit_symtab>;
-#define COMPUNIT_BLOCK_LINE_SECTION(cust) ((cust)->block_line_section)
#define COMPUNIT_LOCATIONS_VALID(cust) ((cust)->locations_valid)
#define COMPUNIT_EPILOGUE_UNWIND_VALID(cust) ((cust)->epilogue_unwind_valid)
#define COMPUNIT_MACRO_TABLE(cust) ((cust)->macro_table)