gdb: fix vfork with multiple threads
[deliverable/binutils-gdb.git] / opcodes / csky-dis.c
index 4916bb6c37ae1a364230845f923785067f0541f8..cdd911be09aa18eb1e385b0a51dc807a4bd1e6e5 100644 (file)
@@ -1,5 +1,5 @@
 /* C-SKY disassembler.
-   Copyright (C) 1988-2020 Free Software Foundation, Inc.
+   Copyright (C) 1988-2021 Free Software Foundation, Inc.
    Contributed by C-SKY Microsystems and Mentor Graphics.
 
    This file is part of the GNU opcodes library.
@@ -22,7 +22,7 @@
 #include "sysdep.h"
 #include "config.h"
 #include <stdio.h>
-#include "bfd_stdint.h"
+#include <stdint.h>
 #include <elf/csky.h>
 #include "disassemble.h"
 #include "elf-bfd.h"
@@ -100,9 +100,9 @@ get_sym_code_type (struct disassemble_info *info,
       && (name[2] == 0 || name[2] == '.'))
     {
       *sym_type = ((name[1] == 't') ? CUR_TEXT : CUR_DATA);
-      return TRUE;
+      return true;
     }
-  return FALSE;
+  return false;
 }
 
 static int
@@ -200,7 +200,7 @@ csky_find_inst_info (struct csky_opcode_info const **pinfo,
   return NULL;
 }
 
-static bfd_boolean
+static bool
 is_extern_symbol (struct disassemble_info *info, int addr)
 {
   unsigned int rel_count = 0;
@@ -212,24 +212,24 @@ is_extern_symbol (struct disassemble_info *info, int addr)
       struct reloc_cache_entry *pt = info->section->relocation;
       for (; rel_count < info->section->reloc_count; rel_count++, pt++)
        if ((long unsigned int)addr == pt->address)
-         return TRUE;
-      return FALSE;
+         return true;
+      return false;
     }
-  return FALSE;
+  return false;
 }
 
 
 /* Suppress printing of mapping symbols emitted by the assembler to mark
    the beginning of code and data sequences.  */
 
-bfd_boolean
+bool
 csky_symbol_is_valid (asymbol *sym,
                      struct disassemble_info *info ATTRIBUTE_UNUSED)
 {
   const char *name;
 
   if (sym == NULL)
-    return FALSE;
+    return false;
   name = bfd_asymbol_name (sym);
   return name && *name != '$';
 }
@@ -776,7 +776,7 @@ csky_output_operand (char *str, struct operand const *oprnd,
     case OPRND_TYPE_PSR_BITS_LIST:
       {
        struct psrbit const *bits;
-       int first_oprnd = TRUE;
+       int first_oprnd = true;
        int i = 0;
        if (IS_CSKY_V1 (mach_flag))
          {
@@ -797,7 +797,7 @@ csky_output_operand (char *str, struct operand const *oprnd,
                    strcat (str, ", ");
                  strcat (str, bits[i].name);
                  value &= ~bits[i].value;
-                 first_oprnd = FALSE;
+                 first_oprnd = false;
                }
              i++;
            }
@@ -1049,7 +1049,7 @@ print_insn_csky (bfd_vma memaddr, struct disassemble_info *info)
   int status;
   char str[256];
   unsigned long given;
-  int is_data = FALSE;
+  int is_data = false;
   void (*printer) (bfd_vma, struct disassemble_info *, long);
   unsigned int  size = 4;
 
This page took 0.02596 seconds and 4 git commands to generate.