gdb: fix vfork with multiple threads
[deliverable/binutils-gdb.git] / opcodes / msp430-dis.c
index 1a08ea94e0caaced74af951b7763c848c1821071..1dac64414a1a56c06b651f83440e046a4c90959f 100644 (file)
@@ -1,5 +1,5 @@
 /* Disassemble MSP430 instructions.
-   Copyright (C) 2002-2017 Free Software Foundation, Inc.
+   Copyright (C) 2002-2021 Free Software Foundation, Inc.
 
    Contributed by Dmitry Diky <diwil@mail.ru>
 
@@ -37,7 +37,7 @@
 
 #define PS(x)   (0xffff & (x))
 
-static bfd_boolean
+static bool
 msp430dis_read_two_bytes (bfd_vma            addr,
                          disassemble_info * info,
                          bfd_byte *         buffer,
@@ -47,7 +47,7 @@ msp430dis_read_two_bytes (bfd_vma            addr,
 
   status = info->read_memory_func (addr, buffer, 2, info);
   if (status == 0)
-    return TRUE;
+    return true;
 
   /* PR 20150: A status of EIO means that there were no more bytes left
      to read in the current section.  This can happen when disassembling
@@ -65,10 +65,10 @@ msp430dis_read_two_bytes (bfd_vma            addr,
        sprintf (comm, _("Error: read from memory failed"));
     }
 
-  return FALSE;
+  return false;
 }
 
-static bfd_boolean
+static bool
 msp430dis_opcode_unsigned (bfd_vma            addr,
                           disassemble_info * info,
                           unsigned short *   return_val,
@@ -79,16 +79,16 @@ msp430dis_opcode_unsigned (bfd_vma            addr,
   if (msp430dis_read_two_bytes (addr, info, buffer, comm))
     {
       * return_val = bfd_getl16 (buffer);
-      return TRUE;
+      return true;
     }
   else
     {
       * return_val = 0;
-      return FALSE;
+      return false;
     }
 }
 
-static bfd_boolean
+static bool
 msp430dis_opcode_signed (bfd_vma            addr,
                         disassemble_info * info,
                         signed int *       return_val,
@@ -104,12 +104,12 @@ msp430dis_opcode_signed (bfd_vma            addr,
       if (status & 0x8000)
        status |= -1U << 16;
       * return_val = status;
-      return TRUE;
+      return true;
     }
   else
     {
       * return_val = 0;
-      return FALSE;
+      return false;
     }
 }
 
This page took 0.030118 seconds and 4 git commands to generate.