diff options
author | Jim Wilson <wilson@tuliptree.org> | 1995-10-06 19:06:13 +0000 |
---|---|---|
committer | Jim Wilson <wilson@tuliptree.org> | 1995-10-06 19:06:13 +0000 |
commit | abf6a9dc4ebf206e0e9d619a1e2a700a60d068ff (patch) | |
tree | c4c8a9a0ded76026cb7086df7e8bfa301f37a210 /gdb/remote-sim.c | |
parent | 6834d4935c454c3e0ba4280b4dd04182a8aadb89 (diff) | |
download | gdb-abf6a9dc4ebf206e0e9d619a1e2a700a60d068ff.zip gdb-abf6a9dc4ebf206e0e9d619a1e2a700a60d068ff.tar.gz gdb-abf6a9dc4ebf206e0e9d619a1e2a700a60d068ff.tar.bz2 |
Changes to make the simulator work again.
* callback.c (fdbad): Fix typo in comment.
(os_close, os_isatty, os_lseek, os_read, os_write): Use if statements
rather than || to get correct return value.
(os_write_stdout): Pass missing first argument to os_write.
* remote-sim.c: Include callback.h.
(_initialize_remote_sim): Call sim_set_callbacks and then initialize
the callbacks.
Diffstat (limited to 'gdb/remote-sim.c')
-rw-r--r-- | gdb/remote-sim.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c index f2b39db..27b17ad 100644 --- a/gdb/remote-sim.c +++ b/gdb/remote-sim.c @@ -34,6 +34,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "gdbcore.h" #include "remote-sim.h" #include "remote-utils.h" +#include "callback.h" /* Naming convention: @@ -459,4 +460,7 @@ _initialize_remote_sim () add_com ("sim <command>", class_obscure, simulator_command, "Send a command to the simulator."); + + sim_set_callbacks (&default_callback); + default_callback.init (&default_callback); } |