aboutsummaryrefslogtreecommitdiff
path: root/gdb/amd64-tdep.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2021-11-19 22:49:01 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2022-02-06 15:48:19 -0500
commitc61596525811d9b0fe79be8f11e5a142ade96dab (patch)
tree8bc43629e072791d0790a2264c0b1fcd7998bd3b /gdb/amd64-tdep.c
parent10cc645b6a09c58cf1a5ce53accbe6cf3178ca12 (diff)
downloadfsf-binutils-gdb-c61596525811d9b0fe79be8f11e5a142ade96dab.zip
fsf-binutils-gdb-c61596525811d9b0fe79be8f11e5a142ade96dab.tar.gz
fsf-binutils-gdb-c61596525811d9b0fe79be8f11e5a142ade96dab.tar.bz2
gdb: remove SYMTAB_COMPUNIT macro, add getter/setter
Add a getter and a setter for a symtab's compunit_symtab. Remove the corresponding macro and adjust all callers. For brevity, I chose the name "compunit" instead of "compunit_symtab" the the field, getter and setter names. Since we are already in symtab context, the _symtab suffix seems redundant. Change-Id: I4b9b731c96e3594f7733e75af1e3d01bc0e4fe92
Diffstat (limited to 'gdb/amd64-tdep.c')
-rw-r--r--gdb/amd64-tdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c
index 4444187..b95ab1e 100644
--- a/gdb/amd64-tdep.c
+++ b/gdb/amd64-tdep.c
@@ -2474,8 +2474,8 @@ amd64_skip_xmm_prologue (CORE_ADDR pc, CORE_ADDR start_pc)
start_pc_sal = find_pc_sect_line (start_pc, NULL, 0);
if (start_pc_sal.symtab == NULL
- || producer_is_gcc_ge_4 (SYMTAB_COMPUNIT
- (start_pc_sal.symtab)->producer ()) < 6
+ || producer_is_gcc_ge_4 (start_pc_sal.symtab->compunit ()
+ ->producer ()) < 6
|| start_pc_sal.pc != start_pc || pc >= start_pc_sal.end)
return pc;