aboutsummaryrefslogtreecommitdiff
path: root/sim/rx/gdb-if.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@adacore.com>2015-01-15 07:14:45 +0400
committerJoel Brobecker <brobecker@adacore.com>2015-01-15 07:21:50 +0400
commita300380e12ca04a6cb900e9bfd26161b3fe56ed8 (patch)
tree5a4063f785dc0dcfab1f927e2a137506d1091a7c /sim/rx/gdb-if.c
parent10b8fe5e0eac145ff075f16872d6cbef7883ec37 (diff)
downloadgdb-a300380e12ca04a6cb900e9bfd26161b3fe56ed8.zip
gdb-a300380e12ca04a6cb900e9bfd26161b3fe56ed8.tar.gz
gdb-a300380e12ca04a6cb900e9bfd26161b3fe56ed8.tar.bz2
Build failure in sim/rx/gdb-if.c on windows
This should fix a build failure reported on x86_64-mingw32 by Daniel Calcoen due to conflicting declarations of "open". This patch just renames the static global in sim/rx/gdb-if.c into "rx_sim_is_open". sim/rx/ChangeLog: * gdb-if.c (open): Rename to... (rx_sim_is_open): This. Replace all uses of "open" by uses of "rx_sim_is_open" throughout. Tested by rebuilding on x86_64-linux.
Diffstat (limited to 'sim/rx/gdb-if.c')
-rw-r--r--sim/rx/gdb-if.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sim/rx/gdb-if.c b/sim/rx/gdb-if.c
index 7af5b00..762c3d2 100644
--- a/sim/rx/gdb-if.c
+++ b/sim/rx/gdb-if.c
@@ -54,14 +54,14 @@ static struct sim_state the_minisim = {
"This is the sole rx minisim instance. See libsim.a's global variables."
};
-static int open;
+static int rx_sim_is_open;
SIM_DESC
sim_open (SIM_OPEN_KIND kind,
struct host_callback_struct *callback,
struct bfd *abfd, char **argv)
{
- if (open)
+ if (rx_sim_is_open)
fprintf (stderr, "rx minisim: re-opened sim\n");
/* The 'run' interface doesn't use this function, so we don't care
@@ -79,7 +79,7 @@ sim_open (SIM_OPEN_KIND kind,
execution_error_init_debugger ();
sim_disasm_init (abfd);
- open = 1;
+ rx_sim_is_open = 1;
return &the_minisim;
}
@@ -98,7 +98,7 @@ sim_close (SIM_DESC sd, int quitting)
/* Not much to do. At least free up our memory. */
init_mem ();
- open = 0;
+ rx_sim_is_open = 0;
}
static bfd *