* stabsread.c (get_substring): Declare second arg as int.
[deliverable/binutils-gdb.git] / gdb / remote-sim.h
index edf9a816da21e603a33c6c4fa6156479fb1eefbb..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,6 +40,11 @@ typedef CORE_ADDR_TYPE SIM_ADDR;
    void printf_filtered (char *msg, ...);
    void error /-* noreturn *-/ (char *msg, ...);
    void *xmalloc (long size);
+   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 ...
@@ -123,4 +129,14 @@ void sim_resume PARAMS ((int step, int siggnal));
 
 void sim_do_command PARAMS ((char *cmd));
 
+
+/* Callbacks for the simulator to use. */
+
+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.023842 seconds and 4 git commands to generate.