public inbox for binutils-cvs@sourceware.org
 help / color / mirror / Atom feed
* [binutils-gdb] x86: drop use of setjmp() from disassembler
@ 2023-04-21 10:11 Jan Beulich
  0 siblings, 0 replies; only message in thread
From: Jan Beulich @ 2023-04-21 10:11 UTC (permalink / raw)
  To: bfd-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d82c06b68e32d01d59b664fe32496184db19b251

commit d82c06b68e32d01d59b664fe32496184db19b251
Author: Jan Beulich <jbeulich@suse.com>
Date:   Fri Apr 21 12:09:59 2023 +0200

    x86: drop use of setjmp() from disassembler
    
    With the longjmp() uses all gone, the setjmp() isn't necessary anymore
    either.

Diff:
---
 opcodes/i386-dis.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c
index 24815389353..d6bff51e6e6 100644
--- 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
@@ -9874,9 +9872,6 @@ print_insn (bfd_vma pc, disassemble_info *info, int intel_syntax)
       ins.op_out[i] = op_out[i];
     }
 
-  if (OPCODES_SIGSETJMP (priv.bailout) != 0)
-    return fetch_error (&ins);
-
   sizeflag = priv.orig_sizeflag;
 
   switch (ckprefix (&ins))

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-04-21 10:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-21 10:11 [binutils-gdb] x86: drop use of setjmp() from disassembler Jan Beulich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).