]> Git Repo - binutils.git/blobdiff - gdb/remote-sim.h
* debugify.c, debugify.h: New files. Provide common macros
[binutils.git] / gdb / remote-sim.h
index edf9a816da21e603a33c6c4fa6156479fb1eefbb..77d543249c61631988920dd7c3d16904915f15ec 100644 (file)
@@ -1,5 +1,5 @@
 /* This file defines the interface between the simulator and gdb.
-   Copyright (C) 1993, 1994 Free Software Foundation, Inc.
+   Copyright (C) 1993, 1994, 1996 Free Software Foundation, Inc.
 
 This file is part of GDB.
 
@@ -32,26 +32,15 @@ typedef unsigned int SIM_ADDR;
 typedef CORE_ADDR_TYPE SIM_ADDR;
 #endif
 
-/* Callbacks.
-   The simulator may use the following callbacks (gdb routines) which the
-   standalone program must provide.
-
-   void printf_filtered (char *msg, ...);
-   void error /-* noreturn *-/ (char *msg, ...);
-   void *xmalloc (long size);
-*/
-
-/* Main simulator entry points ...
-
-   All functions that can get an error must call the gdb routine `error',
-   they can only return upon success.  */
+/* Main simulator entry points.  */
 
 /* Initialize the simulator.  This function is called when the simulator
-   is selected from the command line. ARGS is passed from the command line
+   is selected from the command line.  ARGS is passed from the command line
    and can be used to select whatever run time options the simulator provides.
    ARGS is the raw character string and must be parsed by the simulator,
-   which is trivial to do with the buildargv function in libiberty.
-   It is ok to do nothing.  */
+   which is trivial to do with the buildargv function in libiberty.  */
+/* FIXME: Eventually create a STATE and return its address and pass it to
+   all other main entry points.  */
 
 void sim_open PARAMS ((char *args));
 
@@ -123,4 +112,8 @@ void sim_resume PARAMS ((int step, int siggnal));
 
 void sim_do_command PARAMS ((char *cmd));
 
+/* Provide simulator with a standard host_callback_struct. */
+
+void sim_set_callbacks PARAMS ((struct host_callback_struct *));
+
 #endif /* !defined (REMOTE_SIM_H) */
This page took 0.023995 seconds and 4 git commands to generate.