* stabsread.c (get_substring): Declare second arg as int.
[deliverable/binutils-gdb.git] / gdb / remote-sim.h
index 74f98094def04f37430b8214ad9520af0240c186..8c106a29262a75c7eacb6ab1fa28c9b912a64cb5 100644 (file)
@@ -20,6 +20,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 #if !defined (REMOTE_SIM_H)
 #define REMOTE_SIM_H 1
 
+#include "callback.h"
 /* This file is used when building stand-alone simulators, so isolate this
    file from gdb.  */
 
@@ -39,7 +40,11 @@ typedef CORE_ADDR_TYPE SIM_ADDR;
    void printf_filtered (char *msg, ...);
    void error /-* noreturn *-/ (char *msg, ...);
    void *xmalloc (long size);
-   int gdbsim_write_stdout (char *, int len);
+   int sim_callback_write_stdout (char *, int len);
+
+   The new way of doing I/O is to use the pointer provided by GDB
+   via the sim_set_callbacks call, look in callbacks.c to see what
+   can be done.
 */
 
 /* Main simulator entry points ...
@@ -127,6 +132,11 @@ void sim_do_command PARAMS ((char *cmd));
 
 /* Callbacks for the simulator to use. */
 
-int gdbsim_write_stdout PARAMS ((char *, int));
+int sim_callback_write_stdout PARAMS ((char *, int));
+
+/* 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.024289 seconds and 4 git commands to generate.