aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2021-11-19 22:35:40 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2022-02-06 15:48:19 -0500
commitb0fc0e82d5ca4047ab3054a814b68a841e7001ea (patch)
tree2ef7ff6a9b11429764255484ceeead0d359ad58c /gdb/symtab.h
parentc1e35bc9c6b9d7efe0f720394b1febe71bbc728b (diff)
downloadgdb-b0fc0e82d5ca4047ab3054a814b68a841e7001ea.zip
gdb-b0fc0e82d5ca4047ab3054a814b68a841e7001ea.tar.gz
gdb-b0fc0e82d5ca4047ab3054a814b68a841e7001ea.tar.bz2
gdb: remove COMPUNIT_LOCATIONS_VALID macro, add getter/setter
Add a getter and a setter for a compunit_symtab's locations valid flag. Remove the corresponding macro and adjust all callers. Change-Id: I3e3cfba926ce62993d5b61814331bb3244afad01
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 c59e3c3..a612e1a 100644
--- a/gdb/symtab.h
+++ b/gdb/symtab.h
@@ -1531,6 +1531,16 @@ struct compunit_symtab
m_block_line_section = block_line_section;
}
+ bool locations_valid () const
+ {
+ return m_locations_valid;
+ }
+
+ void set_locations_valid (bool locations_valid)
+ {
+ m_locations_valid = locations_valid;
+ }
+
/* Make PRIMARY_FILETAB the primary filetab of this compunit symtab.
PRIMARY_FILETAB must already be a filetab of this compunit symtab. */
@@ -1593,7 +1603,7 @@ struct compunit_symtab
/* Symtab has been compiled with both optimizations and debug info so that
GDB may stop skipping prologues as variables locations are valid already
at function entry points. */
- unsigned int locations_valid : 1;
+ unsigned int m_locations_valid : 1;
/* DWARF unwinder for this CU is valid even for epilogues (PC at the return
instruction). This is supported by GCC since 4.5.0. */
@@ -1626,7 +1636,6 @@ struct compunit_symtab
using compunit_symtab_range = next_range<compunit_symtab>;
-#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)