If the header files define open(), make sure our local open var
doesn't shadow it.
+2021-05-23 Mike Frysinger <vapier@gentoo.org>
+
+ * gdb-if.c (open): Rename to ...
+ (is_open): ... this.
+ (sim_open, sim_close): Rename open to is_open.
+
2021-05-16 Mike Frysinger <vapier@gentoo.org>
* cpu.c, gdb-if.c, load.c, main.c, mem.c, rl78.c, trace.c: Replace
"This is the sole rl78 minisim instance."
};
-static int open;
+static int is_open;
static struct host_callback_struct *host_callbacks;
struct host_callback_struct *callback,
struct bfd *abfd, char * const *argv)
{
- if (open)
+ if (is_open)
fprintf (stderr, "rl78 minisim: re-opened sim\n");
/* The 'run' interface doesn't use this function, so we don't care
trace = 0;
sim_disasm_init (abfd);
- open = 1;
+ is_open = 1;
while (argv != NULL && *argv != NULL)
{
/* Not much to do. At least free up our memory. */
init_mem ();
- open = 0;
+ is_open = 0;
}
/* Open the program to run; print a message if the program cannot