projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gdb/infrun: move a 'regcache_read_pc' call down to first use
[deliverable/binutils-gdb.git]
/
opcodes
/
m68k-dis.c
diff --git
a/opcodes/m68k-dis.c
b/opcodes/m68k-dis.c
index 45af5ff7e2ab04f417e6e73f8525a8d8643ea010..ec896433f27076718c7f5e5d5c8b725592119303 100644
(file)
--- a/
opcodes/m68k-dis.c
+++ b/
opcodes/m68k-dis.c
@@
-1,5
+1,5
@@
/* Print Motorola 68k instructions.
/* Print Motorola 68k instructions.
- Copyright (C) 1986-20
19
Free Software Foundation, Inc.
+ Copyright (C) 1986-20
20
Free Software Foundation, Inc.
This file is part of the GNU opcodes library.
This file is part of the GNU opcodes library.
@@
-23,7
+23,7
@@
#include "floatformat.h"
#include "libiberty.h"
#include "opintl.h"
#include "floatformat.h"
#include "libiberty.h"
#include "opintl.h"
-
+#include "cpu-m68k.h"
#include "opcode/m68k.h"
/* Local function prototypes. */
#include "opcode/m68k.h"
/* Local function prototypes. */
@@
-96,7
+96,7
@@
enum print_insn_arg_error
while (0)
/* Get a 4 byte signed integer. */
while (0)
/* Get a 4 byte signed integer. */
-#define COERCE32(x) ((
bfd_signed_vma) (
(x) ^ 0x80000000) - 0x80000000)
+#define COERCE32(x) ((
(bfd_vma)
(x) ^ 0x80000000) - 0x80000000)
#define NEXTLONG(p, val, ret_val) \
do \
#define NEXTLONG(p, val, ret_val) \
do \
@@
-104,7
+104,8
@@
enum print_insn_arg_error
p += 4; \
if (!FETCH_DATA (info, p)) \
return ret_val; \
p += 4; \
if (!FETCH_DATA (info, p)) \
return ret_val; \
- val = COERCE32 ((((((p[-4] << 8) + p[-3]) << 8) + p[-2]) << 8) + p[-1]); \
+ val = COERCE32 (((((((unsigned) p[-4] << 8) + p[-3]) << 8) \
+ + p[-2]) << 8) + p[-1]); \
} \
while (0)
} \
while (0)
@@
-115,7
+116,8
@@
enum print_insn_arg_error
p += 4; \
if (!FETCH_DATA (info, p)) \
return PRINT_INSN_ARG_MEMORY_ERROR; \
p += 4; \
if (!FETCH_DATA (info, p)) \
return PRINT_INSN_ARG_MEMORY_ERROR; \
- val = (unsigned int) ((((((p[-4] << 8) + p[-3]) << 8) + p[-2]) << 8) + p[-1]); \
+ val = (((((((unsigned) p[-4] << 8) + p[-3]) << 8) \
+ + p[-2]) << 8) + p[-1]); \
} \
while (0)
} \
while (0)
This page took
0.023629 seconds
and
4
git commands to generate.