* objfiles.c (allocate_objfile): Add the newly-created objfile to
[deliverable/binutils-gdb.git] / gdb / h8300-tdep.c
index 862d1af5b503d70482ca507800f3bf0e6aa4a380..11dfc5783ec7d8aa43cc9a1cf24744a69808c441 100644 (file)
@@ -26,7 +26,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #include "frame.h"
 #include "obstack.h"
 #include "symtab.h"
-#include <dis-asm.h>
+#include "dis-asm.h"
 #include "gdbcmd.h"
 #include "gdbtypes.h"
 
@@ -441,13 +441,11 @@ print_register_hook (regno)
   if (regno == 8)
     {
       /* CCR register */
-
       int C, Z, N, V;
-      unsigned char b[2];
+      unsigned char b[4];
       unsigned char l;
-
       read_relative_register_raw_bytes (regno, b);
-      l = b[1];
+      l = b[REGISTER_VIRTUAL_SIZE(8) -1];
       printf_unfiltered ("\t");
       printf_unfiltered ("I-%d - ", (l & 0x80) != 0);
       printf_unfiltered ("H-%d - ", (l & 0x20) != 0);
@@ -482,14 +480,3 @@ print_register_hook (regno)
     }
 }
 
-/* This doesn't quite fit either in the simulator or in gdb proper.
-   Perhaps the simulator could return 1 to mean it loaded it and 0 to
-   mean "you deal with it, caller".  */
-
-int 
-sim_load (abfd, prog)
-bfd *abfd;
-char *prog;
-{
-  return sim_load_standard (abfd); 
-}
This page took 0.025129 seconds and 4 git commands to generate.