diff options
Diffstat (limited to 'gdb/remote-sim.c')
-rw-r--r-- | gdb/remote-sim.c | 19 |
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; |