sim: create header namespace

The gdb/callback.h & gdb/remote-sim.h headers have nothing to do with
gdb and are really definitions for the libsim API under the sim/ tree.
While gdb uses those headers as a client, it's not specific to it.  So
create a new sim/ namespace and move the headers there.
This commit is contained in:
Mike Frysinger
2021-05-12 00:35:54 -04:00
parent 183aaaf72a
commit df68e12b3b
76 changed files with 211 additions and 81 deletions

View File

@ -1,3 +1,8 @@
2021-05-14 Mike Frysinger <vapier@gentoo.org>
* remote-sim.c: Change gdb/callback.h & gdb/remote-sim.h includes to
sim/callback.h & sim/sim.h.
2021-05-13 Mike Frysinger <vapier@gentoo.org> 2021-05-13 Mike Frysinger <vapier@gentoo.org>
* lm32-tdep.c: Delete gdb/callback.h, gdb/remote-sim.h, and * lm32-tdep.c: Delete gdb/callback.h, gdb/remote-sim.h, and

View File

@ -33,8 +33,8 @@
#include "target.h" #include "target.h"
#include "process-stratum-target.h" #include "process-stratum-target.h"
#include "gdbcore.h" #include "gdbcore.h"
#include "gdb/callback.h" #include "sim/callback.h"
#include "gdb/remote-sim.h" #include "sim/sim.h"
#include "command.h" #include "command.h"
#include "regcache.h" #include "regcache.h"
#include "sim-regno.h" #include "sim-regno.h"

View File

@ -1,3 +1,8 @@
2021-05-14 Mike Frysinger <vapier@gentoo.org>
* callback.h: Moved to ../sim/callback.h.
* remote-sim.h: Moved to ../sim/sim.h.
2021-02-04 Mike Frysinger <vapier@gentoo.org> 2021-02-04 Mike Frysinger <vapier@gentoo.org>
* sim-riscv.h: New file. * sim-riscv.h: New file.

4
include/sim/ChangeLog Normal file
View File

@ -0,0 +1,4 @@
2021-05-14 Mike Frysinger <vapier@gentoo.org>
* callback.h: Moved from ../gdb/callback.h.
* sim.h: Moved from ../gdb/remote-sim.h.

View File

@ -42,8 +42,8 @@
is ENVIRONMENT_OPERATING. is ENVIRONMENT_OPERATING.
*/ */
#ifndef CALLBACK_H #ifndef SIM_CALLBACK_H
#define CALLBACK_H #define SIM_CALLBACK_H
/* ??? The reason why we check for va_start here should be documented. */ /* ??? The reason why we check for va_start here should be documented. */

View File

@ -17,8 +17,8 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#if !defined (REMOTE_SIM_H) #ifndef SIM_SIM_H
#define REMOTE_SIM_H 1 #define SIM_SIM_H 1
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -296,4 +296,4 @@ char **sim_complete_command (SIM_DESC sd, const char *text, const char *word);
} }
#endif #endif
#endif /* !defined (REMOTE_SIM_H) */ #endif /* !defined (SIM_SIM_H) */

View File

@ -1,3 +1,7 @@
2021-05-14 Mike Frysinger <vapier@gentoo.org>
* README-HACKING: Update callback.h path.
2021-05-12 Mike Frysinger <vapier@gentoo.org> 2021-05-12 Mike Frysinger <vapier@gentoo.org>
* README-HACKING: Delete mention of SIM_AC_OPTION_ENVIRONMENT. * README-HACKING: Delete mention of SIM_AC_OPTION_ENVIRONMENT.

View File

@ -294,7 +294,7 @@ Userspace System Calls
By default, the libgloss userspace is simulated. That means the system call By default, the libgloss userspace is simulated. That means the system call
numbers and calling convention matches that of libgloss. Simulating other numbers and calling convention matches that of libgloss. Simulating other
userspaces (such as Linux) is pretty straightforward, but let's first focus userspaces (such as Linux) is pretty straightforward, but let's first focus
on the basics. The basic API is covered in include/gdb/callback.h. on the basics. The basic API is covered in include/sim/callback.h.
When an instruction is simulated that invokes the system call method (such as When an instruction is simulated that invokes the system call method (such as
forcing a hardware trap or exception), your simulator code should set up the forcing a hardware trap or exception), your simulator code should set up the

View File

@ -1,3 +1,8 @@
2021-05-14 Mike Frysinger <vapier@gentoo.org>
* cpustate.h: Update include path.
* interp.c: Likewise.
2021-05-04 Mike Frysinger <vapier@gentoo.org> 2021-05-04 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate. * configure: Regenerate.

View File

@ -27,7 +27,7 @@
#include <stdint.h> #include <stdint.h>
#include <inttypes.h> #include <inttypes.h>
#include "gdb/remote-sim.h" #include "sim/sim.h"
/* Symbolic names used to identify general registers which also match /* Symbolic names used to identify general registers which also match
the registers indices in machine code. the registers indices in machine code.

View File

@ -29,8 +29,8 @@
#include "ansidecl.h" #include "ansidecl.h"
#include "bfd.h" #include "bfd.h"
#include "gdb/callback.h" #include "sim/callback.h"
#include "gdb/remote-sim.h" #include "sim/sim.h"
#include "gdb/signals.h" #include "gdb/signals.h"
#include "gdb/sim-aarch64.h" #include "gdb/sim-aarch64.h"

View File

@ -1,3 +1,8 @@
2021-05-14 Mike Frysinger <vapier@gentoo.org>
* armos.c: Update include path.
* wrapper.c: Likewise.
2021-05-04 Mike Frysinger <vapier@gentoo.org> 2021-05-04 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate. * configure: Regenerate.

View File

@ -54,7 +54,7 @@
/* For RDIError_BreakpointReached. */ /* For RDIError_BreakpointReached. */
#include "dbg_rdi.h" #include "dbg_rdi.h"
#include "gdb/callback.h" #include "sim/callback.h"
extern host_callback *sim_callback; extern host_callback *sim_callback;
extern unsigned ARMul_OSInit (ARMul_State *); extern unsigned ARMul_OSInit (ARMul_State *);

View File

@ -27,8 +27,8 @@
#include <string.h> #include <string.h>
#include <bfd.h> #include <bfd.h>
#include <signal.h> #include <signal.h>
#include "gdb/callback.h" #include "sim/callback.h"
#include "gdb/remote-sim.h" #include "sim/sim.h"
#include "sim-main.h" #include "sim-main.h"
#include "sim-options.h" #include "sim-options.h"
#include "armemu.h" #include "armemu.h"

View File

@ -1,3 +1,7 @@
2021-05-14 Mike Frysinger <vapier@gentoo.org>
* interp.c: Update include path.
2021-05-04 Mike Frysinger <vapier@gentoo.org> 2021-05-04 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate. * configure: Regenerate.

View File

@ -23,7 +23,7 @@
#include "bfd.h" #include "bfd.h"
#include "libiberty.h" #include "libiberty.h"
#include "gdb/remote-sim.h" #include "sim/sim.h"
#include "sim-main.h" #include "sim-main.h"
#include "sim-base.h" #include "sim-base.h"

View File

@ -1,3 +1,7 @@
2021-05-14 Mike Frysinger <vapier@gentoo.org>
* interp.c: Update include path.
2021-05-04 Mike Frysinger <vapier@gentoo.org> 2021-05-04 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate. * configure: Regenerate.

View File

@ -29,7 +29,7 @@
#include <unistd.h> #include <unistd.h>
#include <sys/time.h> #include <sys/time.h>
#include "gdb/callback.h" #include "sim/callback.h"
#include "gdb/signals.h" #include "gdb/signals.h"
#include "sim-main.h" #include "sim-main.h"
#include "sim-syscall.h" #include "sim-syscall.h"

View File

@ -1,3 +1,15 @@
2021-05-14 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (callback_h, remote_sim_h): Update path.
* callback.c: Update include path.
* gentmap.c (gen_targ_map_c): Likewise.
* sim-basics.h: Likewise.
* sim-close.c: Likewise.
* sim-core.c: Likewise.
* sim-load.c: Likewise.
* sim-module.h: Likewise.
* syscall.c: Likewise.
2021-05-08 Mike Frysinger <vapier@gentoo.org> 2021-05-08 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (modules.c): Touch $@ at the end. * Make-common.in (modules.c): Touch $@ at the end.

View File

@ -258,8 +258,8 @@ LINK_FOR_BUILD = $(CC_FOR_BUILD) $(BUILD_CFLAGS) $(LDFLAGS_FOR_BUILD) -o $@
RUNTESTFLAGS = RUNTESTFLAGS =
callback_h = $(srcroot)/include/gdb/callback.h callback_h = $(srcroot)/include/sim/callback.h
remote_sim_h = $(srcroot)/include/gdb/remote-sim.h remote_sim_h = $(srcroot)/include/sim/sim.h
all: libsim.a run$(EXEEXT) .gdbinit all: libsim.a run$(EXEEXT) .gdbinit

View File

@ -35,7 +35,7 @@
#include <time.h> #include <time.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "gdb/callback.h" #include "sim/callback.h"
#include "targ-vals.h" #include "targ-vals.h"
/* For xmalloc. */ /* For xmalloc. */
#include "libiberty.h" #include "libiberty.h"

View File

@ -71,7 +71,7 @@ gen_targ_map_c (void)
printf ("#include <errno.h>\n"); printf ("#include <errno.h>\n");
printf ("#include <fcntl.h>\n"); printf ("#include <fcntl.h>\n");
printf ("#include \"ansidecl.h\"\n"); printf ("#include \"ansidecl.h\"\n");
printf ("#include \"gdb/callback.h\"\n"); printf ("#include \"sim/callback.h\"\n");
printf ("#include \"targ-vals.h\"\n"); printf ("#include \"targ-vals.h\"\n");
printf ("\n"); printf ("\n");

View File

@ -119,8 +119,8 @@ typedef enum {
/* Basic definitions - ordered so that nothing calls what comes after it. */ /* Basic definitions - ordered so that nothing calls what comes after it. */
#include "ansidecl.h" #include "ansidecl.h"
#include "gdb/callback.h" #include "sim/callback.h"
#include "gdb/remote-sim.h" #include "sim/sim.h"
#include "sim-config.h" #include "sim-config.h"

View File

@ -20,7 +20,7 @@
#include "sim-main.h" #include "sim-main.h"
#include "sim-module.h" #include "sim-module.h"
#include "gdb/remote-sim.h" #include "sim/sim.h"
/* Generic implementation of sim_close that works with simulators that use /* Generic implementation of sim_close that works with simulators that use
sim-module for all custom runtime options. */ sim-module for all custom runtime options. */

View File

@ -454,7 +454,7 @@ sim_core_translate (sim_core_mapping *mapping,
#if EXTERN_SIM_CORE_P #if EXTERN_SIM_CORE_P
/* See include/gdb/remote-sim.h. */ /* See include/sim/sim.h. */
char * char *
sim_memory_map (SIM_DESC sd) sim_memory_map (SIM_DESC sd)
{ {

View File

@ -31,8 +31,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "bfd.h" #include "bfd.h"
#include "sim-utils.h" #include "sim-utils.h"
#include "gdb/callback.h" #include "sim/callback.h"
#include "gdb/remote-sim.h" #include "sim/sim.h"
static void eprintf (host_callback *, const char *, ...); static void eprintf (host_callback *, const char *, ...);
static void xprintf (host_callback *, const char *, ...); static void xprintf (host_callback *, const char *, ...);

View File

@ -30,7 +30,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
TODO: Add facilities for saving/restoring state to/from a file. */ TODO: Add facilities for saving/restoring state to/from a file. */
#include "gdb/remote-sim.h" #include "sim/sim.h"
/* Various function types. */ /* Various function types. */

View File

@ -40,7 +40,7 @@
#include <time.h> #include <time.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "gdb/callback.h" #include "sim/callback.h"
#include "targ-vals.h" #include "targ-vals.h"
#ifndef ENOSYS #ifndef ENOSYS

View File

@ -1,3 +1,9 @@
2021-05-14 Mike Frysinger <vapier@gentoo.org>
* Makefile.in: Update path.
* cr16_sim.h: Update include path.
* interp.c: Likewise.
2021-05-04 Mike Frysinger <vapier@gentoo.org> 2021-05-04 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate. * configure: Regenerate.

View File

@ -27,7 +27,7 @@ SIM_EXTRA_CLEAN = clean-extra
SIM_EXTRA_DEPS = simops.h SIM_EXTRA_DEPS = simops.h
INCLUDE = cr16_sim.h $(srcroot)/include/gdb/callback.h targ-vals.h \ INCLUDE = cr16_sim.h $(srcroot)/include/sim/callback.h targ-vals.h \
$(srcroot)/include/gdb/sim-cr16.h $(srcroot)/include/gdb/sim-cr16.h
# This selects the cr16 newlib/libgloss syscall definitions. # This selects the cr16 newlib/libgloss syscall definitions.

View File

@ -23,7 +23,7 @@
#include <ctype.h> #include <ctype.h>
#include <limits.h> #include <limits.h>
#include "ansidecl.h" #include "ansidecl.h"
#include "gdb/callback.h" #include "sim/callback.h"
#include "opcode/cr16.h" #include "opcode/cr16.h"
#include "bfd.h" #include "bfd.h"
@ -41,7 +41,7 @@
extern int cr16_debug; extern int cr16_debug;
#include "gdb/remote-sim.h" #include "sim/sim.h"
#include "sim-config.h" #include "sim-config.h"
#include "sim-types.h" #include "sim-types.h"

View File

@ -23,8 +23,8 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include "bfd.h" #include "bfd.h"
#include "gdb/callback.h" #include "sim/callback.h"
#include "gdb/remote-sim.h" #include "sim/sim.h"
#include "sim-main.h" #include "sim-main.h"
#include "sim-options.h" #include "sim-options.h"

View File

@ -1,3 +1,9 @@
2021-05-14 Mike Frysinger <vapier@gentoo.org>
* Makefile.in: Update path.
* d10v_sim.h: Update include path.
* interp.c: Likewise.
2021-05-04 Mike Frysinger <vapier@gentoo.org> 2021-05-04 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate. * configure: Regenerate.

View File

@ -28,7 +28,7 @@ SIM_EXTRA_CLEAN = clean-extra
SIM_EXTRA_DEPS = simops.h SIM_EXTRA_DEPS = simops.h
INCLUDE = d10v_sim.h $(srcroot)/include/gdb/callback.h targ-vals.h endian.c \ INCLUDE = d10v_sim.h $(srcroot)/include/sim/callback.h targ-vals.h endian.c \
$(srcroot)/include/gdb/sim-d10v.h $(srcroot)/include/gdb/sim-d10v.h
# This selects the d10v newlib/libgloss syscall definitions. # This selects the d10v newlib/libgloss syscall definitions.

View File

@ -3,7 +3,7 @@
#include <ctype.h> #include <ctype.h>
#include <limits.h> #include <limits.h>
#include "ansidecl.h" #include "ansidecl.h"
#include "gdb/callback.h" #include "sim/callback.h"
#include "opcode/d10v.h" #include "opcode/d10v.h"
#include "bfd.h" #include "bfd.h"
@ -21,7 +21,7 @@
extern int d10v_debug; extern int d10v_debug;
#include "gdb/remote-sim.h" #include "sim/sim.h"
#include "sim-config.h" #include "sim-config.h"
#include "sim-types.h" #include "sim-types.h"

View File

@ -2,8 +2,8 @@
#include <inttypes.h> #include <inttypes.h>
#include <signal.h> #include <signal.h>
#include "bfd.h" #include "bfd.h"
#include "gdb/callback.h" #include "sim/callback.h"
#include "gdb/remote-sim.h" #include "sim/sim.h"
#include "sim-main.h" #include "sim-main.h"
#include "sim-options.h" #include "sim-options.h"

View File

@ -1,3 +1,8 @@
2021-05-14 Mike Frysinger <vapier@gentoo.org>
* interf.c: Update include path.
* sis.h: Likewise.
2021-05-04 Mike Frysinger <vapier@gentoo.org> 2021-05-04 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate. * configure: Regenerate.

View File

@ -28,7 +28,7 @@
#include <dis-asm.h> #include <dis-asm.h>
#include "sim-config.h" #include "sim-config.h"
#include "gdb/remote-sim.h" #include "sim/sim.h"
#include "gdb/signals.h" #include "gdb/signals.h"
#define PSR_CWP 0x7 #define PSR_CWP 0x7

View File

@ -15,8 +15,8 @@
#include "config.h" #include "config.h"
#include "ansidecl.h" #include "ansidecl.h"
#include "gdb/callback.h" #include "sim/callback.h"
#include "gdb/remote-sim.h" #include "sim/sim.h"
#include <sim-config.h> #include <sim-config.h>
#include <stdint.h> #include <stdint.h>

View File

@ -1,3 +1,7 @@
2021-05-14 Mike Frysinger <vapier@gentoo.org>
* interp.c: Update include path.
2021-05-04 Mike Frysinger <vapier@gentoo.org> 2021-05-04 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate. * configure: Regenerate.

View File

@ -22,8 +22,8 @@
specific simulator. Normally this file will be kept small and the target specific simulator. Normally this file will be kept small and the target
details will live in other files. details will live in other files.
For more specific details on these functions, see the gdb/remote-sim.h For more specific details on these functions, see the sim/sim.h header
header file. */ file. */
#include "config.h" #include "config.h"

View File

@ -1,3 +1,7 @@
2021-05-14 Mike Frysinger <vapier@gentoo.org>
* interp.c: Update include path.
2021-05-04 Mike Frysinger <vapier@gentoo.org> 2021-05-04 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate. * configure: Regenerate.

View File

@ -25,9 +25,9 @@
#include <stdint.h> #include <stdint.h>
#include "bfd.h" #include "bfd.h"
#include "gdb/callback.h" #include "sim/callback.h"
#include "libiberty.h" #include "libiberty.h"
#include "gdb/remote-sim.h" #include "sim/sim.h"
#include "sim-main.h" #include "sim-main.h"
#include "sim-options.h" #include "sim-options.h"

View File

@ -1,3 +1,8 @@
2021-05-14 Mike Frysinger <vapier@gentoo.org>
* gdb-if.c: Update include path.
* syscalls.c: Likewise.
2021-05-07 Mike Frysinger <vapier@gentoo.org> 2021-05-07 Mike Frysinger <vapier@gentoo.org>
* mem.c: Include errno.h. * mem.c: Include errno.h.

View File

@ -28,8 +28,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "ansidecl.h" #include "ansidecl.h"
#include "libiberty.h" #include "libiberty.h"
#include "gdb/callback.h" #include "sim/callback.h"
#include "gdb/remote-sim.h" #include "sim/sim.h"
#include "gdb/signals.h" #include "gdb/signals.h"
#include "gdb/sim-m32c.h" #include "gdb/sim-m32c.h"

View File

@ -25,7 +25,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include <unistd.h> #include <unistd.h>
#include <sys/time.h> #include <sys/time.h>
#include "gdb/callback.h" #include "sim/callback.h"
#include "cpu.h" #include "cpu.h"
#include "mem.h" #include "mem.h"

View File

@ -1,3 +1,7 @@
2021-05-14 Mike Frysinger <vapier@gentoo.org>
* sim-main.h: Update include path.
2021-05-07 Mike Frysinger <vapier@gentoo.org> 2021-05-07 Mike Frysinger <vapier@gentoo.org>
* dv-m68hc11tim.c (cycle_to_string): Increase buf to 128 bytes. * dv-m68hc11tim.c (cycle_to_string): Increase buf to 128 bytes.

View File

@ -28,8 +28,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "opcode/m68hc11.h" #include "opcode/m68hc11.h"
#include "gdb/callback.h" #include "sim/callback.h"
#include "gdb/remote-sim.h" #include "sim/sim.h"
#include "opcode/m68hc11.h" #include "opcode/m68hc11.h"
#include "sim-types.h" #include "sim-types.h"

View File

@ -1,3 +1,7 @@
2021-05-14 Mike Frysinger <vapier@gentoo.org>
* interp.c: Update include path.
2021-05-04 Mike Frysinger <vapier@gentoo.org> 2021-05-04 Mike Frysinger <vapier@gentoo.org>
* configure.ac: Delete SIM_AC_OPTION_WARNINGS call. * configure.ac: Delete SIM_AC_OPTION_WARNINGS call.

View File

@ -24,9 +24,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include <sys/param.h> #include <sys/param.h>
#include <unistd.h> #include <unistd.h>
#include "bfd.h" #include "bfd.h"
#include "gdb/callback.h" #include "sim/callback.h"
#include "libiberty.h" #include "libiberty.h"
#include "gdb/remote-sim.h" #include "sim/sim.h"
#include "sim-main.h" #include "sim-main.h"
#include "sim-base.h" #include "sim-base.h"

View File

@ -1,3 +1,7 @@
2021-05-14 Mike Frysinger <vapier@gentoo.org>
* interp.c: Update include path.
2021-05-04 Mike Frysinger <vapier@gentoo.org> 2021-05-04 Mike Frysinger <vapier@gentoo.org>
* interp.c (sim_engine_run): Call TRACE_INSN. * interp.c (sim_engine_run): Call TRACE_INSN.

View File

@ -22,9 +22,9 @@
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
#include "bfd.h" #include "bfd.h"
#include "gdb/callback.h" #include "sim/callback.h"
#include "libiberty.h" #include "libiberty.h"
#include "gdb/remote-sim.h" #include "sim/sim.h"
#include "sim-main.h" #include "sim-main.h"
#include "sim-options.h" #include "sim-options.h"

View File

@ -1,3 +1,7 @@
2021-05-14 Mike Frysinger <vapier@gentoo.org>
* interp.c: Update include path.
2021-05-04 Mike Frysinger <vapier@gentoo.org> 2021-05-04 Mike Frysinger <vapier@gentoo.org>
* dv-tx3904sio.c: Include stdlib.h. * dv-tx3904sio.c: Include stdlib.h.

View File

@ -48,8 +48,8 @@ code on the hardware.
#include "libiberty.h" #include "libiberty.h"
#include "bfd.h" #include "bfd.h"
#include "elf-bfd.h" #include "elf-bfd.h"
#include "gdb/callback.h" /* GDB simulator callback interface */ #include "sim/callback.h" /* GDB simulator callback interface */
#include "gdb/remote-sim.h" /* GDB simulator interface */ #include "sim/sim.h" /* GDB simulator interface */
#include "sim-syscall.h" /* Simulator system call support */ #include "sim-syscall.h" /* Simulator system call support */
char* pr_addr (SIM_ADDR addr); char* pr_addr (SIM_ADDR addr);

View File

@ -1,3 +1,7 @@
2021-05-14 Mike Frysinger <vapier@gentoo.org>
* mn10300_sim.h: Update include path.
2021-05-04 Mike Frysinger <vapier@gentoo.org> 2021-05-04 Mike Frysinger <vapier@gentoo.org>
* op_utils.c: Delete sys/times.h include. * op_utils.c: Delete sys/times.h include.

View File

@ -1,10 +1,10 @@
#include <stdio.h> #include <stdio.h>
#include <ctype.h> #include <ctype.h>
#include "ansidecl.h" #include "ansidecl.h"
#include "gdb/callback.h" #include "sim/callback.h"
#include "opcode/mn10300.h" #include "opcode/mn10300.h"
#include <limits.h> #include <limits.h>
#include "gdb/remote-sim.h" #include "sim/sim.h"
#include "bfd.h" #include "bfd.h"
#include "sim-fpu.h" #include "sim-fpu.h"

View File

@ -1,3 +1,7 @@
2021-05-14 Mike Frysinger <vapier@gentoo.org>
* interp.c: Update include path.
2021-05-04 Mike Frysinger <vapier@gentoo.org> 2021-05-04 Mike Frysinger <vapier@gentoo.org>
* interp.c: Delete sys/times.h include. * interp.c: Delete sys/times.h include.

View File

@ -26,7 +26,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include <unistd.h> #include <unistd.h>
#include "bfd.h" #include "bfd.h"
#include "libiberty.h" #include "libiberty.h"
#include "gdb/remote-sim.h" #include "sim/sim.h"
#include "sim-main.h" #include "sim-main.h"
#include "sim-base.h" #include "sim-base.h"

View File

@ -1,3 +1,11 @@
2021-05-14 Mike Frysinger <vapier@gentoo.org>
* Makefile.in: Update path.
* gdb-sim.c: Update include path.
* main.c: Likewise.
* psim.h: Likewise.
* sim_calls.c: Likewise.
2021-04-22 Tom Tromey <tom@tromey.com> 2021-04-22 Tom Tromey <tom@tromey.com>
* mon.c: Update includes. * mon.c: Update includes.

View File

@ -168,8 +168,8 @@ all: run $(TARGETLIB) $(GDB_OBJ)
# Headers outside sim/ppc. # Headers outside sim/ppc.
ANSIDECL_H = $(srcroot)/include/ansidecl.h ANSIDECL_H = $(srcroot)/include/ansidecl.h
BFD_H = ../../bfd/bfd.h BFD_H = ../../bfd/bfd.h
GDB_CALLBACK_H = $(srcroot)/include/gdb/callback.h GDB_CALLBACK_H = $(srcroot)/include/sim/callback.h
GDB_REMOTE_SIM_H = $(srcroot)/include/gdb/remote-sim.h GDB_REMOTE_SIM_H = $(srcroot)/include/sim/sim.h
GDB_SIM_PPC_H = $(srcroot)/include/gdb/sim-ppc.h GDB_SIM_PPC_H = $(srcroot)/include/gdb/sim-ppc.h
COMMON_SIM_BASE_H = $(srcroot)/sim/common/sim-base.h COMMON_SIM_BASE_H = $(srcroot)/sim/common/sim-base.h
COMMON_SIM_BASICS_H = $(srcroot)/sim/common/sim-basics.h COMMON_SIM_BASICS_H = $(srcroot)/sim/common/sim-basics.h

View File

@ -24,8 +24,8 @@
#include "ansidecl.h" #include "ansidecl.h"
#include "sim_callbacks.h" #include "sim_callbacks.h"
#include "gdb/callback.h" #include "sim/callback.h"
#include "gdb/remote-sim.h" #include "sim/sim.h"
#include "gdb/sim-ppc.h" #include "gdb/sim-ppc.h"
/* Return the register name for the supplied SPR if any, or NULL if /* Return the register name for the supplied SPR if any, or NULL if

View File

@ -30,8 +30,8 @@
#include "events.h" /* FIXME: psim should provide the interface */ #include "events.h" /* FIXME: psim should provide the interface */
#include "bfd.h" #include "bfd.h"
#include "gdb/callback.h" #include "sim/callback.h"
#include "gdb/remote-sim.h" #include "sim/sim.h"
#include <stdlib.h> #include <stdlib.h>
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H

View File

@ -23,7 +23,7 @@
#include "basics.h" #include "basics.h"
#include "gdb/remote-sim.h" #include "sim/sim.h"
/* the system object */ /* the system object */
/* typedef struct _psim psim; */ /* typedef struct _psim psim; */

View File

@ -32,8 +32,8 @@
#include "libiberty.h" #include "libiberty.h"
#include "bfd.h" #include "bfd.h"
#include "gdb/callback.h" #include "sim/callback.h"
#include "gdb/remote-sim.h" #include "sim/sim.h"
#include "gdb/signals.h" #include "gdb/signals.h"
/* Define the rate at which the simulator should poll the host /* Define the rate at which the simulator should poll the host

View File

@ -1,3 +1,7 @@
2021-05-14 Mike Frysinger <vapier@gentoo.org>
* interp.c: Update include path.
2021-05-04 Mike Frysinger <vapier@gentoo.org> 2021-05-04 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate. * configure: Regenerate.

View File

@ -23,9 +23,9 @@
#include <stdint.h> #include <stdint.h>
#include <stddef.h> #include <stddef.h>
#include "bfd.h" #include "bfd.h"
#include "gdb/callback.h" #include "sim/callback.h"
#include "libiberty.h" #include "libiberty.h"
#include "gdb/remote-sim.h" #include "sim/sim.h"
#include "sim-main.h" #include "sim-main.h"
#include "sim-assert.h" #include "sim-assert.h"
#include "sim-options.h" #include "sim-options.h"

View File

@ -1,3 +1,9 @@
2021-05-14 Mike Frysinger <vapier@gentoo.org>
* Makefile.in: Update path.
* gdb-if.c: Update include path.
* load.h: Likewise.
2021-05-05 Mike Frysinger <vapier@gentoo.org> 2021-05-05 Mike Frysinger <vapier@gentoo.org>
* gdb-if.c: Include libiberty.h. * gdb-if.c: Include libiberty.h.

View File

@ -40,8 +40,8 @@ arch = rl78
err.o : err.h err.o : err.h
fpu.o : cpu.h fpu.h fpu.o : cpu.h fpu.h
gdb-if.o : cpu.h mem.h load.h \ gdb-if.o : cpu.h mem.h load.h \
$(srcdir)/../../include/gdb/callback.h \ $(srcdir)/../../include/sim/callback.h \
$(srcdir)/../../include/gdb/remote-sim.h \ $(srcdir)/../../include/sim/sim.h \
$(srcdir)/../../include/gdb/signals.h \ $(srcdir)/../../include/gdb/signals.h \
$(srcdir)/../../include/gdb/sim-rl78.h $(srcdir)/../../include/gdb/sim-rl78.h
load.o : ../../bfd/bfd.h cpu.h mem.h load.o : ../../bfd/bfd.h cpu.h mem.h

View File

@ -28,8 +28,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "ansidecl.h" #include "ansidecl.h"
#include "libiberty.h" #include "libiberty.h"
#include "gdb/callback.h" #include "sim/callback.h"
#include "gdb/remote-sim.h" #include "sim/sim.h"
#include "gdb/signals.h" #include "gdb/signals.h"
#include "gdb/sim-rl78.h" #include "gdb/sim-rl78.h"

View File

@ -23,7 +23,7 @@
#define SIM_RL78_LOAD_H_ #define SIM_RL78_LOAD_H_
#include "bfd.h" #include "bfd.h"
#include "gdb/callback.h" #include "sim/callback.h"
void rl78_load (bfd *, host_callback *callbacks, const char * const simname); void rl78_load (bfd *, host_callback *callbacks, const char * const simname);

View File

@ -1,3 +1,9 @@
2021-05-14 Mike Frysinger <vapier@gentoo.org>
* gdb-if.c: Update include path.
* load.h: Likewise.
* syscalls.c: Likewise.
2021-05-05 Mike Frysinger <vapier@gentoo.org> 2021-05-05 Mike Frysinger <vapier@gentoo.org>
* gdb-if.c: Include libiberty.h. * gdb-if.c: Include libiberty.h.

View File

@ -28,8 +28,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "ansidecl.h" #include "ansidecl.h"
#include "libiberty.h" #include "libiberty.h"
#include "gdb/callback.h" #include "sim/callback.h"
#include "gdb/remote-sim.h" #include "sim/sim.h"
#include "gdb/signals.h" #include "gdb/signals.h"
#include "gdb/sim-rx.h" #include "gdb/sim-rx.h"

View File

@ -20,7 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "bfd.h" #include "bfd.h"
#include "gdb/callback.h" #include "sim/callback.h"
extern int default_machine; extern int default_machine;

View File

@ -26,7 +26,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include <unistd.h> #include <unistd.h>
#include <sys/time.h> #include <sys/time.h>
#include "gdb/callback.h" #include "sim/callback.h"
#include "cpu.h" #include "cpu.h"
#include "mem.h" #include "mem.h"

View File

@ -1,3 +1,7 @@
2021-05-14 Mike Frysinger <vapier@gentoo.org>
* interp.c: Update include path.
2021-05-04 Mike Frysinger <vapier@gentoo.org> 2021-05-04 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate. * configure: Regenerate.

View File

@ -50,8 +50,8 @@
#endif #endif
#include "bfd.h" #include "bfd.h"
#include "gdb/callback.h" #include "sim/callback.h"
#include "gdb/remote-sim.h" #include "sim/sim.h"
#include "gdb/sim-sh.h" #include "gdb/sim-sh.h"
#include "sim-main.h" #include "sim-main.h"