aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-sim.c
diff options
context:
space:
mode:
authorDawn Perchik <dawn@cygnus>1997-02-18 19:33:29 +0000
committerDawn Perchik <dawn@cygnus>1997-02-18 19:33:29 +0000
commit7ae78a73cf9529cbbcbe6ab8c83557047de957be (patch)
tree7a2252cd80570f621333f30335058190407bc093 /gdb/remote-sim.c
parent8d1ba96ecc35ac9eb4454fa7d5523bbc196451ad (diff)
downloadgdb-7ae78a73cf9529cbbcbe6ab8c83557047de957be.zip
gdb-7ae78a73cf9529cbbcbe6ab8c83557047de957be.tar.gz
gdb-7ae78a73cf9529cbbcbe6ab8c83557047de957be.tar.bz2
* maint.c: Fix dereference of pointer.
* remote-sim.c: Fix reference of structure member "last_error". * debugify.c: Include config.h to get ANSI definitions.
Diffstat (limited to 'gdb/remote-sim.c')
-rw-r--r--gdb/remote-sim.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c
index 3b0ddb4..f40c70c 100644
--- a/gdb/remote-sim.c
+++ b/gdb/remote-sim.c
@@ -137,7 +137,9 @@ init_callbacks ()
gdb_callback.init (&gdb_callback);
gdb_callback.write_stdout = gdb_os_write_stdout;
gdb_callback.printf_filtered = gdb_os_printf_filtered;
- gdb_callback.error = gdb_os_error;
+ /* ??? where'd error come from? */
+ /*gdb_callback.error = gdb_os_error;*/
+ gdb_callback.last_errno= gdb_os_error;
sim_set_callbacks (&gdb_callback);
callbacks_initialized = 1;
}