Add macros to handle NOP insertion.
[deliverable/binutils-gdb.git] / gdb / convex-tdep.c
index 0828d990f903879ff7564e7826b2607c9f3b992d..75a90bc4a80d928b826cd4b7b570fab4b26113e0 100644 (file)
@@ -1,5 +1,5 @@
 /* Convex stuff for GDB.
-   Copyright (C) 1990, 1991 Free Software Foundation, Inc.
+   Copyright (C) 1990, 1991, 1996 Free Software Foundation, Inc.
 
 This file is part of GDB.
 
@@ -15,7 +15,7 @@ GNU General Public License for more details.
 
 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., 675 Mass Ave, Cambridge, MA 02139, USA.  */
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
 #include "defs.h"
 #include "command.h"
@@ -37,7 +37,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #include <sys/thread.h>
 #include <sys/proc.h>
 #include <sys/file.h>
-#include <sys/stat.h>
+#include "gdb_stat.h"
 #include <sys/mman.h>
 
 #include "gdbcmd.h"
@@ -130,6 +130,7 @@ exec_file_command (filename, from_tty)
     (*exec_file_display_hook) (filename);
 }
 
+#if 0
 /* Read data from SOFF exec or core file.
    Return 0 on success, EIO if address out of bounds. */
 
@@ -233,7 +234,7 @@ xfer_core_file (memaddr, myaddr, len)
     }
   return returnval;
 }
-
+#endif
 
 /* Here from info files command to print an address map.  */
 
@@ -443,26 +444,20 @@ decout (stream, type, val)
          && ((lv & 0xf0000000) == 0x80000000
              || ((lv & 0xf0000000) == 0xf0000000 && lv < STACK_END_ADDR)))
        {
-         fprintf_filtered (stream, "%#x", lv);
+         print_longest (stream, "x", 0, val);
          return;
        }
 
     case 10:
-      fprintf_filtered (stream, TYPE_UNSIGNED (type) ? "%llu" : "%lld", val);
+      print_longest (stream, TYPE_UNSIGNED (type) ? "u" : "d", 0, val);
       return;
 
     case 8:
-      if (TYPE_LENGTH (type) <= sizeof lv)
-       fprintf_filtered (stream, "%#o", lv);
-      else
-       fprintf_filtered (stream, "%#llo", val);
+      print_longest (stream, "o", 0, val);
       return;
 
     case 16:
-      if (TYPE_LENGTH (type) <= sizeof lv)
-       fprintf_filtered (stream, "%#x", lv);
-      else
-       fprintf_filtered (stream, "%#llx", val);
+      print_longest (stream, "x", 0, val);
       return;
     }
 }
This page took 0.023981 seconds and 4 git commands to generate.