[7/8] x86: drop use of setjmp() from disassembler

Message ID 9375ae85-ac76-2081-547d-55803c97aadf@suse.com
State Accepted
Headers
Series x86: do away with (ab)using setjmp/longjmp for error handling |

Checks

Context Check Description
snail/binutils-gdb-check success Github commit url

Commit Message

Jan Beulich April 4, 2023, 7:01 a.m. UTC
  With the longjmp() uses all gone, the setjmp() isn't necessary anymore
either.
  

Patch

--- a/opcodes/i386-dis.c
+++ b/opcodes/i386-dis.c
@@ -39,7 +39,6 @@ 
 #include "libiberty.h"
 #include "safe-ctype.h"
 
-#include <setjmp.h>
 typedef struct instr_info instr_info;
 
 static bool dofloat (instr_info *, int);
@@ -133,7 +132,6 @@  struct dis_private {
   bfd_byte the_buffer[MAX_MNEM_SIZE];
   bfd_vma insn_start;
   int orig_sizeflag;
-  OPCODES_SIGJMP_BUF bailout;
 };
 
 enum address_mode
@@ -9842,9 +9840,6 @@  print_insn (bfd_vma pc, disassemble_info
       ins.op_out[i] = op_out[i];
     }
 
-  if (OPCODES_SIGSETJMP (priv.bailout) != 0)
-    return fetch_error (&ins);
-
   sizeflag = priv.orig_sizeflag;
 
   switch (ckprefix (&ins))