aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/low-sim.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/gdbserver/low-sim.c')
-rw-r--r--gdb/gdbserver/low-sim.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/gdbserver/low-sim.c b/gdb/gdbserver/low-sim.c
index ebd5f7d..3f9dea2 100644
--- a/gdb/gdbserver/low-sim.c
+++ b/gdb/gdbserver/low-sim.c
@@ -28,7 +28,8 @@ extern int remote_debug;
extern host_callback default_callback; /* in sim/common/callback.c */
-char registers[REGISTER_BYTES] __attribute__ ((aligned));
+static char my_registers[REGISTER_BYTES] __attribute__ ((aligned));
+char * registers = my_registers;
int target_byte_order; /* used by simulator */