diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2021-11-19 22:35:40 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2022-02-06 15:48:19 -0500 |
commit | b0fc0e82d5ca4047ab3054a814b68a841e7001ea (patch) | |
tree | 2ef7ff6a9b11429764255484ceeead0d359ad58c /gdb/symtab.c | |
parent | c1e35bc9c6b9d7efe0f720394b1febe71bbc728b (diff) | |
download | gdb-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.c')
-rw-r--r-- | gdb/symtab.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c index 70a9f10..5ad5cdb 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -3709,7 +3709,7 @@ find_function_start_sal_1 (CORE_ADDR func_addr, obj_section *section, symtab_and_line sal = find_pc_sect_line (func_addr, section, 0); if (funfirstline && sal.symtab != NULL - && (COMPUNIT_LOCATIONS_VALID (SYMTAB_COMPUNIT (sal.symtab)) + && (SYMTAB_COMPUNIT (sal.symtab)->locations_valid () || SYMTAB_LANGUAGE (sal.symtab) == language_asm)) { struct gdbarch *gdbarch = SYMTAB_OBJFILE (sal.symtab)->arch (); @@ -3885,7 +3885,7 @@ skip_prologue_sal (struct symtab_and_line *sal) have proven the CU (Compilation Unit) supports it. sal->SYMTAB does not have to be set by the caller so we use SYM instead. */ if (sym != NULL - && COMPUNIT_LOCATIONS_VALID (SYMTAB_COMPUNIT (symbol_symtab (sym)))) + && SYMTAB_COMPUNIT (symbol_symtab (sym))->locations_valid ()) force_skip = 0; saved_pc = pc; |