aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/sim_calls.c
diff options
context:
space:
mode:
authorMichael Meissner <gnu@the-meissners.org>1997-01-27 21:34:50 +0000
committerMichael Meissner <gnu@the-meissners.org>1997-01-27 21:34:50 +0000
commit5c04f4f7fced8f90816be87e9efde53441447d7a (patch)
treec6264a3954b4a33d053257abfe5bf2c01af4f737 /sim/ppc/sim_calls.c
parent1d5c6cfdf01a498866d3b1662d30d75985c99fc4 (diff)
downloadgdb-5c04f4f7fced8f90816be87e9efde53441447d7a.zip
gdb-5c04f4f7fced8f90816be87e9efde53441447d7a.tar.gz
gdb-5c04f4f7fced8f90816be87e9efde53441447d7a.tar.bz2
January 23rd merge
Diffstat (limited to 'sim/ppc/sim_calls.c')
-rw-r--r--sim/ppc/sim_calls.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/sim/ppc/sim_calls.c b/sim/ppc/sim_calls.c
index e1889f6..35a9212 100644
--- a/sim/ppc/sim_calls.c
+++ b/sim/ppc/sim_calls.c
@@ -40,10 +40,9 @@
#endif
#endif
-#include "../../gdb/defs.h"
-
-#include "../../gdb/remote-sim.h"
-#include "../../gdb/callback.h"
+#include "defs.h"
+#include "callback.h"
+#include "remote-sim.h"
/* Structures used by the simulator, for gdb just have static structures */
@@ -280,9 +279,9 @@ sim_do_command (char *cmd)
{
TRACE(trace_gdb, ("sim_do_commands(cmd=%s) called\n",
cmd ? cmd : "(null)"));
- if (cmd) {
+ if (cmd != NULL) {
char **argv = buildargv(cmd);
- psim_options(root_device, argv);
+ psim_command(root_device, argv);
freeargv(argv);
}
}
@@ -312,6 +311,7 @@ sim_io_read_stdin(char *buf,
error("sim_io_read_stdin: unaccounted switch\n");
break;
}
+ return 0;
}
int
@@ -329,6 +329,7 @@ sim_io_write_stdout(const char *buf,
error("sim_io_write_stdout: unaccounted switch\n");
break;
}
+ return 0;
}
int
@@ -347,6 +348,7 @@ sim_io_write_stderr(const char *buf,
error("sim_io_write_stderr: unaccounted switch\n");
break;
}
+ return 0;
}