Initial revision
[deliverable/binutils-gdb.git] / gdb / m68k-pinsn.c
index c080d8cad2619c0c47021ad0c7626df9c2a96b8e..de43af111461bf3e3c06a5b55f53cf4a450b7936 100644 (file)
@@ -1,5 +1,5 @@
-/* Print m68k instructions for GDB, the GNU debugger.
-   Copyright (C) 1986, 1987, 1989 Free Software Foundation, Inc.
+/* Print Motorola 68k instructions for GDB, the GNU debugger.
+   Copyright 1986, 1987, 1989, 1991 Free Software Foundation, Inc.
 
 This file is part of GDB.
 
@@ -20,7 +20,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #include <stdio.h>
 
 #include "defs.h"
-#include "param.h"
 #include "symtab.h"
 #include "m68k-opcode.h"
 #include "gdbcore.h"
@@ -306,9 +305,11 @@ print_insn_arg (d, buffer, p, addr, stream)
     case 'B':
       if (place == 'b')
        val = NEXTBYTE (p);
-      else if (place == 'w')
+      else if (place == 'B')
+       val = buffer[1];
+      else if (place == 'w' || place == 'W')
        val = NEXTWORD (p);
-      else if (place == 'l')
+      else if (place == 'l' || place == 'L')
        val = NEXTLONG (p);
       else if (place == 'g')
        {
This page took 0.023023 seconds and 4 git commands to generate.