diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2021-11-19 22:49:01 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2022-02-06 15:48:19 -0500 |
commit | c61596525811d9b0fe79be8f11e5a142ade96dab (patch) | |
tree | 8bc43629e072791d0790a2264c0b1fcd7998bd3b /gdb/z80-tdep.c | |
parent | 10cc645b6a09c58cf1a5ce53accbe6cf3178ca12 (diff) | |
download | gdb-c61596525811d9b0fe79be8f11e5a142ade96dab.zip gdb-c61596525811d9b0fe79be8f11e5a142ade96dab.tar.gz 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/z80-tdep.c')
-rw-r--r-- | gdb/z80-tdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/z80-tdep.c b/gdb/z80-tdep.c index 4a58fe5..a252574 100644 --- a/gdb/z80-tdep.c +++ b/gdb/z80-tdep.c @@ -495,7 +495,7 @@ z80_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc) if (prologue_end != 0) { struct symtab_and_line prologue_sal = find_pc_line (func_addr, 0); - struct compunit_symtab *compunit = SYMTAB_COMPUNIT (prologue_sal.symtab); + struct compunit_symtab *compunit = prologue_sal.symtab->compunit (); const char *debug_format = compunit->debugformat (); if (debug_format != NULL && |