aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-sim.c
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1995-09-20 15:32:41 +0000
committerSteve Chamberlain <sac@cygnus>1995-09-20 15:32:41 +0000
commit6b009ef680221bc7ad17d3fa2dc473ecfdf277d9 (patch)
tree60f2cffb24f628fbb98ae62527e46289d8da7c00 /gdb/remote-sim.c
parentb46805224b81b08335947252fc23d474b4bbc0a0 (diff)
downloadfsf-binutils-gdb-6b009ef680221bc7ad17d3fa2dc473ecfdf277d9.zip
fsf-binutils-gdb-6b009ef680221bc7ad17d3fa2dc473ecfdf277d9.tar.gz
fsf-binutils-gdb-6b009ef680221bc7ad17d3fa2dc473ecfdf277d9.tar.bz2
Wed Sep 20 08:16:03 1995 steve chamberlain <sac@slash.cygnus.com>
* defs.h (xmalloc, xrealloc): Delete, they're declared in libiberty.h. (GETENV_PROVIDED, FCLOSE_PROVIDED): New. * doc/gdbint.texinfo (GETENV_PROVIDED, FCLOSE_PROVIDED): Document. * remote-sim.[ch] (gdbsim_write_stdout): New.
Diffstat (limited to 'gdb/remote-sim.c')
-rw-r--r--gdb/remote-sim.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c
index 813f212..dab8149 100644
--- a/gdb/remote-sim.c
+++ b/gdb/remote-sim.c
@@ -95,6 +95,25 @@ int regno;
}
}
+
+int
+gdbsim_write_stdout (arg, len)
+char *arg;
+int len;
+{
+ int i;
+ char b[2];
+ for (i = 0; i< len; i++) {
+ b[0] = arg[i];
+ b[1] = 0;
+ if (target_output_hook)
+ target_output_hook (b);
+ else
+ fputs_filtered (b, gdb_stdout);
+ }
+ return len;
+}
+
static void
gdbsim_store_register (regno)
int regno;