From: Steve Chamberlain Date: Fri, 29 Oct 1993 16:35:22 +0000 (+0000) Subject: * remote-sim.c (gdbsim_store_register): Change var name so X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3beff94ec2b24bb2ef34027458ec62c523758c29;p=binutils-gdb.git * remote-sim.c (gdbsim_store_register): Change var name so it compiles with non-ANSI compilers. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 09f501c3d5b..962de4987b1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +Fri Oct 29 09:31:38 1993 Steve Chamberlain (sac@rtl.cygnus.com) + + * remote-sim.c (gdbsim_store_register): Change var name so + it compiles with non-ANSI compilers. + Fri Oct 29 08:11:29 1993 Jim Kingdon (kingdon@lioth.cygnus.com) * TODO: Add idea for "disassemble" with source. diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c index 926d139d619..c87761c3a83 100644 --- a/gdb/remote-sim.c +++ b/gdb/remote-sim.c @@ -107,14 +107,14 @@ int regno; else { /* FIXME: Until read_register() returns LONGEST, we have this. */ - char value[MAX_REGISTER_RAW_SIZE]; - read_register_gen (regno, value); - sim_store_register (regno, value); + char tmp[MAX_REGISTER_RAW_SIZE]; + read_register_gen (regno, tmp); + sim_store_register (regno, tmp); if (sr_get_debug ()) { printf_filtered ("gdbsim_store_register: %d", regno); /* FIXME: We could print something more intelligible. */ - dump_mem (value, REGISTER_RAW_SIZE (regno)); + dump_mem (tmp, REGISTER_RAW_SIZE (regno)); } } }