binutils-gdb/sim
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
..
aarch64 sim: Fix some -Werror=shadow=compatible-local issues in aarch64/simulator.c 2024-01-22 12:10:23 +01:00
arm Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
avr Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
bfin Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
bpf Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
common sim: Fix -Werror=shadow=local by changing mem to addr in sim_{read,write} 2024-01-22 14:22:30 +01:00
cr16 sim: Fix cc -Werror=shadow=local in cr16/simops.c 2024-01-22 12:04:49 +01:00
cris Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
d10v Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
erc32 sim: Fix -Werror=shadow=local by changing mem to addr in sim_{read,write} 2024-01-22 14:22:30 +01:00
example-synacor Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
frv Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
ft32 Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
h8300 Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
igen Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
iq2000 Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
lm32 Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
m4 Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
m32c sim: Fix -Werror=shadow=local by changing mem to addr in sim_{read,write} 2024-01-22 14:22:30 +01:00
m32r Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
m68hc11 Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
mcore Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
microblaze Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
mips Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
mn10300 Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
moxie Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
msp430 Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
or1k Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
ppc sim: Fix -Werror=shadow=local by changing mem to addr in sim_{read,write} 2024-01-22 14:22:30 +01:00
pru Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
riscv Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
rl78 sim: Fix -Werror=shadow=local by changing mem to addr in sim_{read,write} 2024-01-22 14:22:30 +01:00
rx sim: Fix -Werror=shadow=local by changing mem to addr in sim_{read,write} 2024-01-22 14:22:30 +01:00
sh Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
testsuite sim: Fix compile errors 2024-01-12 21:48:25 +02:00
v850 Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
.gitignore
aclocal.m4
ChangeLog-2021
config.h.in sim: m32r: fixup some of the int<->pointer casts 2024-01-10 22:37:03 -05:00
configure sim: m32r: fixup some of the int<->pointer casts 2024-01-10 22:37:03 -05:00
configure.ac sim: build: switch to gdbsupport/libiberty.m4 2024-01-10 19:53:10 -05:00
COPYING
gdbinit.in
MAINTAINERS
Makefile.am Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
Makefile.in Regenerate two Makefile.in files to update Copyright headers 2024-01-15 15:44:25 +01:00
README-HACKING