gdb: remove symbol value macros
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 28 Jan 2022 13:09:50 +0000 (08:09 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Mon, 11 Apr 2022 14:45:36 +0000 (10:45 -0400)
commit4aeddc50d7a06294cc124dfd8f43992ffa0b7382
tree82c6a016c94112c6e5dc7cf763cc5641d91e6b6e
parent96d368d10456f5a599db759aab20e84a61f361f9
gdb: remove symbol value macros

Remove all macros related to getting and setting some symbol value:

    #define SYMBOL_VALUE(symbol)           (symbol)->value.ivalue
    #define SYMBOL_VALUE_ADDRESS(symbol)                         \
    #define SET_SYMBOL_VALUE_ADDRESS(symbol, new_value)    \
    #define SYMBOL_VALUE_BYTES(symbol)     (symbol)->value.bytes
    #define SYMBOL_VALUE_COMMON_BLOCK(symbol) (symbol)->value.common_block
    #define SYMBOL_BLOCK_VALUE(symbol)     (symbol)->value.block
    #define SYMBOL_VALUE_CHAIN(symbol)     (symbol)->value.chain
    #define MSYMBOL_VALUE(symbol)          (symbol)->value.ivalue
    #define MSYMBOL_VALUE_RAW_ADDRESS(symbol) ((symbol)->value.address + 0)
    #define MSYMBOL_VALUE_ADDRESS(objfile, symbol)                         \
    #define BMSYMBOL_VALUE_ADDRESS(symbol) \
    #define SET_MSYMBOL_VALUE_ADDRESS(symbol, new_value)   \
    #define MSYMBOL_VALUE_BYTES(symbol)    (symbol)->value.bytes
    #define MSYMBOL_BLOCK_VALUE(symbol)    (symbol)->value.block

Replace them with equivalent methods on the appropriate objects.

Change-Id: Iafdab3b8eefc6dc2fd895aa955bf64fafc59ed50
90 files changed:
gdb/ada-exp.y
gdb/ada-lang.c
gdb/ada-tasks.c
gdb/aix-thread.c
gdb/alpha-mdebug-tdep.c
gdb/arc-linux-tdep.c
gdb/arm-tdep.c
gdb/auxv.c
gdb/avr-tdep.c
gdb/ax-gdb.c
gdb/blockframe.c
gdb/breakpoint.c
gdb/bsd-uthread.c
gdb/buildsym.c
gdb/c-exp.y
gdb/c-valprint.c
gdb/coff-pe-read.c
gdb/coffread.c
gdb/compile/compile-c-symbols.c
gdb/compile/compile-cplus-symbols.c
gdb/compile/compile-cplus-types.c
gdb/compile/compile-object-load.c
gdb/compile/compile-object-run.c
gdb/cp-namespace.c
gdb/ctfread.c
gdb/dbxread.c
gdb/dwarf2/loc.c
gdb/dwarf2/read.c
gdb/elfread.c
gdb/f-valprint.c
gdb/fbsd-tdep.c
gdb/findvar.c
gdb/frame.c
gdb/frv-tdep.c
gdb/ft32-tdep.c
gdb/glibc-tdep.c
gdb/gnu-v3-abi.c
gdb/hppa-tdep.c
gdb/infcmd.c
gdb/infrun.c
gdb/inline-frame.c
gdb/jit.c
gdb/linespec.c
gdb/linux-thread-db.c
gdb/m2-exp.y
gdb/m32c-tdep.c
gdb/m32r-tdep.c
gdb/m68hc11-tdep.c
gdb/machoread.c
gdb/maint.c
gdb/mdebugread.c
gdb/mi/mi-symbol-cmds.c
gdb/minsyms.c
gdb/minsyms.h
gdb/mips-fbsd-tdep.c
gdb/mips-linux-tdep.c
gdb/mips-tdep.c
gdb/netbsd-tdep.c
gdb/objc-lang.c
gdb/objfiles.c
gdb/obsd-tdep.c
gdb/p-exp.y
gdb/p-valprint.c
gdb/parse.c
gdb/ppc-linux-tdep.c
gdb/ppc-sysv-tdep.c
gdb/printcmd.c
gdb/proc-service.c
gdb/psympriv.h
gdb/psymtab.c
gdb/ravenscar-thread.c
gdb/remote.c
gdb/sol-thread.c
gdb/sol2-tdep.c
gdb/solib-dsbt.c
gdb/solib-frv.c
gdb/solib-svr4.c
gdb/solib.c
gdb/stabsread.c
gdb/stack.c
gdb/symfile.c
gdb/symmisc.c
gdb/symtab.c
gdb/symtab.h
gdb/tracepoint.c
gdb/tui/tui-disasm.c
gdb/valops.c
gdb/value.c
gdb/xcoffread.c
gdb/z80-tdep.c