From abf6a9dc4ebf206e0e9d619a1e2a700a60d068ff Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Fri, 6 Oct 1995 19:06:13 +0000 Subject: 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. --- gdb/remote-sim.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gdb/remote-sim.c') 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 ", class_obscure, simulator_command, "Send a command to the simulator."); + + sim_set_callbacks (&default_callback); + default_callback.init (&default_callback); } -- cgit v1.1