binutils-gdb/sim/common
Mark Wielaard cbbcd7fd10 sim: Fix -Werror=shadow=local by changing mem to addr in sim_{read,write}
m32c/cpu.h defines mem as enum value, which causes GCC 14 to emit

sim/m32c/gdb-if.c: In function ‘sim_read’:
sim/m32c/gdb-if.c:162:33: error: declaration of ‘mem’ shadows a previous local [-Werror=shadow=local]
  162 | sim_read (SIM_DESC sd, uint64_t mem, void *buf, uint64_t length)
      |                        ~~~~~~~~~^~~
In file included from ../../binutils-gdb/sim/m32c/gdb-if.c:38:
sim/m32c/cpu.h:83:3: note: shadowed declaration is here
   83 |   mem,
      |   ^~~

Fix this by renaming mem to addr in all sim_read and sim_write functions.
Most already used addr instead of mem. In one file, sim/rx/gdb-if.c, this
also meant renaming the local addr variable to vma.
2024-01-22 14:22:30 +01:00
..
callback.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
cgen-accfp.c
cgen-cpu.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
cgen-defs.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
cgen-engine.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
cgen-fpu.c
cgen-fpu.h
cgen-mem.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
cgen-ops.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
cgen-par.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
cgen-par.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
cgen-run.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
cgen-scache.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
cgen-scache.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
cgen-sim.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
cgen-trace.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
cgen-trace.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
cgen-types.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
cgen-utils.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
cgen.sh Simplify definition of GUILE 2023-08-26 13:09:38 -06:00
ChangeLog-2021
create-version.sh Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
defs.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
dv-cfi.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
dv-cfi.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
dv-core.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
dv-glue.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
dv-pal.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
dv-sockser.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
dv-sockser.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
gdbinit.in sim: add arch/.gdbinit stub scripts 2022-03-28 23:10:34 -04:00
genmloop.sh Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
gennltvals.py Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
hw-alloc.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
hw-alloc.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
hw-base.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
hw-base.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
hw-device.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
hw-device.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
hw-events.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
hw-events.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
hw-handles.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
hw-handles.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
hw-instances.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
hw-instances.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
hw-main.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
hw-ports.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
hw-ports.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
hw-properties.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
hw-properties.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
hw-tree.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
hw-tree.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
lineno.sh Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
local.mk Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
nrun.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
portability.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
portability.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
run.1 Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-abort.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-alu.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-arange.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-arange.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-assert.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-base.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-basics.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-bits.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-bits.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-close.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-command.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-config.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-config.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-core.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-core.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-cpu.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-cpu.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-endian.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-endian.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-engine.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-engine.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-events.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-events.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-fpu.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-fpu.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-hload.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-hrw.c sim: Fix -Werror=shadow=local by changing mem to addr in sim_{read,write} 2024-01-22 14:22:30 +01:00
sim-hw.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-hw.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-info.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-inline.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-inline.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-io.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-io.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-load.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-memopt.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-memopt.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-model.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-model.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-module.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-module.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-n-bits.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-n-core.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-n-endian.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-options.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-options.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-profile.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-profile.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-reason.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-reg.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-resume.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-run.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-signal.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-signal.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-stop.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-syscall.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-syscall.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-trace.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-trace.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-types.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-utils.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-utils.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-watch.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
sim-watch.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
syscall.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
target-newlib-errno.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
target-newlib-open.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
target-newlib-signal.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
target-newlib-syscall.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
target-newlib-syscall.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
version.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00