Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gdb/dist/gdb fix signness issues.



details:   https://anonhg.NetBSD.org/src/rev/902684906fb5
branches:  trunk
changeset: 320543:902684906fb5
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Jul 11 13:52:35 2018 +0000

description:
fix signness issues.

diffstat:

 external/gpl3/gdb/dist/gdb/aarch64-nbsd-tdep.c |  10 +++++-----
 external/gpl3/gdb/dist/gdb/aarch64-tdep.c      |   2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (32 lines):

diff -r 666c029977de -r 902684906fb5 external/gpl3/gdb/dist/gdb/aarch64-nbsd-tdep.c
--- a/external/gpl3/gdb/dist/gdb/aarch64-nbsd-tdep.c    Wed Jul 11 13:49:06 2018 +0000
+++ b/external/gpl3/gdb/dist/gdb/aarch64-nbsd-tdep.c    Wed Jul 11 13:52:35 2018 +0000
@@ -118,11 +118,11 @@
   SIGTRAMP_FRAME,
   4,
   {
-    {0x910003e0, -1},          /* mov  x0, sp  */
-    {0x91014000, -1},          /* add  x0, x0, #SF_UC  */
-    {0xd2803428, -1},          /* mov  x8, #SYS_sigreturn  */
-    {0xd4000001, -1},          /* svc  0x0  */
-    {TRAMP_SENTINEL_INSN, -1}
+    {0x910003e0, (ULONGEST)-1},                /* mov  x0, sp  */
+    {0x91014000, (ULONGEST)-1},                /* add  x0, x0, #SF_UC  */
+    {0xd2803428, (ULONGEST)-1},                /* mov  x8, #SYS_sigreturn  */
+    {0xd4000001, (ULONGEST)-1},                /* svc  0x0  */
+    {(ULONGEST)TRAMP_SENTINEL_INSN, (ULONGEST)-1}
   },
   aarch64_nbsd_sigframe_init
 };
diff -r 666c029977de -r 902684906fb5 external/gpl3/gdb/dist/gdb/aarch64-tdep.c
--- a/external/gpl3/gdb/dist/gdb/aarch64-tdep.c Wed Jul 11 13:49:06 2018 +0000
+++ b/external/gpl3/gdb/dist/gdb/aarch64-tdep.c Wed Jul 11 13:52:35 2018 +0000
@@ -2425,7 +2425,7 @@
   const int insn_size = 4;
   const int atomic_sequence_length = 16; /* Instruction sequence length.  */
   CORE_ADDR pc = regcache_read_pc (regcache);
-  CORE_ADDR breaks[2] = { -1, -1 };
+  CORE_ADDR breaks[2] = { (ULONGEST)-1, (ULONGEST)-1 };
   CORE_ADDR loc = pc;
   CORE_ADDR closing_insn = 0;
   uint32_t insn = read_memory_unsigned_integer (loc, insn_size,



Home | Main Index | Thread Index | Old Index