If the header files define open(), make sure our local open var
doesn't shadow it.
+2021-05-28 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>
* int.c, misc.c, opc2c.c, reg.c, srcdest.c: Include defs.h.
"This is the sole m32c minisim instance. See libsim.a's global variables."
};
-static int open;
+static int is_open;
SIM_DESC
sim_open (SIM_OPEN_KIND kind,
struct bfd *abfd, char * const *argv)
{
setbuf (stdout, 0);
- if (open)
+ if (is_open)
fprintf (stderr, "m32c minisim: re-opened sim\n");
/* The 'run' interface doesn't use this function, so we don't care
init_mem ();
init_regs ();
- open = 1;
+ is_open = 1;
return &the_minisim;
}
/* Not much to do. At least free up our memory. */
init_mem ();
- open = 0;
+ is_open = 0;
}
static bfd *