]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* maint.c: Fix dereference of pointer.
authorDawn Perchik <dawn@cygnus>
Tue, 18 Feb 1997 19:33:29 +0000 (19:33 +0000)
committerDawn Perchik <dawn@cygnus>
Tue, 18 Feb 1997 19:33:29 +0000 (19:33 +0000)
* remote-sim.c: Fix reference of structure member "last_error".
* debugify.c: Include config.h to get ANSI definitions.

gdb/debugify.c
gdb/maint.c
gdb/remote-sim.c

index 8411e3535bd030083d5c77daf0229700d02940ce..841b58913948d02b480dda152c99b02a9dddcea9 100644 (file)
@@ -19,6 +19,10 @@ You should have received a copy of the GNU General Public License
 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>
@@ -29,9 +33,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 #include <strings.h>
 #endif
 
-#define DEBUGIFY
-#include "debugify.h"
-
 #define REDIRECT
 
 static FILE *fout = NULL;
index 54fc62691cd12637f58ad2cb97019de3087c50d6..ac86dd0b71ee50afc629fb330c8d97dd53d61cf7 100644 (file)
@@ -297,7 +297,7 @@ maintenance_translate_address (arg, from_tty)
   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++;
index 3b0ddb45970145f5fc341f5319d6e06765bed4fc..f40c70cb6ac3f0576edade3a9ed65992aaf9d679 100644 (file)
@@ -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;
     }