summaryrefslogtreecommitdiffstats
path: root/gdb/remote-sim.h
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1995-10-13 21:15:18 +0000
committerSteve Chamberlain <sac@cygnus>1995-10-13 21:15:18 +0000
commit4a29aa8458de4f522b803a5aacacaf8faea001ac (patch)
tree8b7d62186a66403914113dcfb2a4761d4f207d47 /gdb/remote-sim.h
parent4444ae6e3dc487607b6b9f897e4de87101c34cdd (diff)
downloadppe42-binutils-4a29aa8458de4f522b803a5aacacaf8faea001ac.tar.gz
ppe42-binutils-4a29aa8458de4f522b803a5aacacaf8faea001ac.zip
* srcwin.cpp (CSrcScroll1::OnDraw): Don't show disabled
splats unless a breakpoint is possible. * gui.mak: Include mips config. * prebuilt/mips/elf32-target.h: Regenerated.
Diffstat (limited to 'gdb/remote-sim.h')
-rw-r--r--gdb/remote-sim.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/remote-sim.h b/gdb/remote-sim.h
index aee9ab73b8..8c106a2926 100644
--- a/gdb/remote-sim.h
+++ b/gdb/remote-sim.h
@@ -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. */
@@ -40,6 +41,10 @@ typedef CORE_ADDR_TYPE SIM_ADDR;
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 ...
@@ -129,4 +134,9 @@ void sim_do_command PARAMS ((char *cmd));
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) */
OpenPOWER on IntegriCloud