* remote-sim.c: Fix reference of structure member "last_error".
* debugify.c: Include config.h to get ANSI definitions.
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+#define DEBUGIFY
+#include "debugify.h"
+#include "config.h"
+
#include <stdio.h>
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#include <strings.h>
#endif
-#define DEBUGIFY
-#include "debugify.h"
-
#define REDIRECT
static FILE *fout = NULL;
sect = NULL;
p = arg;
- if (!isdigit (p))
+ if (!isdigit (*p))
{ /* See if we have a valid section name */
while (*p && !isspace (*p)) /* Find end of section name */
p++;
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;
}