Index: head/devel/gdb/Makefile =================================================================== --- head/devel/gdb/Makefile (revision 464687) +++ head/devel/gdb/Makefile (revision 464688) @@ -1,140 +1,142 @@ -# Created by: Steven Kreuzer +z Created by: Steven Kreuzer # $FreeBSD$ PORTNAME= gdb PORTVERSION= 8.1 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= GNU MAINTAINER= pizzamig@FreeBSD.org COMMENT= GNU GDB of newer version than comes with the system LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING3 # untested on sparc64, might work ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386 mips powerpc powerpc64 TEST_DEPENDS= runtest:misc/dejagnu TEST_TARGET= check # XXX: This should be compiler:c++11-lib as GDB doesn't really require # C++14. However, clang in 10.3 crashes while building this port. # Requiring C++14 forces 10.3 to use an external version of clang while # still using the base system clang on 11.0 and later. USES= compiler:c++14-lang cpe iconv gmake libtool tar:xz USE_CSTD= gnu89 CPE_VENDOR= gnu GNU_CONFIGURE= yes CONFIGURE_ENV= CONFIGURED_M4=m4 CONFIGURED_BISON=byacc CONFIGURE_ARGS= --program-suffix=${PORTVERSION:S/.//g} \ --enable-targets=all --enable-64-bit-bfd \ --with-gdb-datadir=${PREFIX}/share/gdb${PORTVERSION:S/.//g} \ --with-separate-debug-dir=/usr/lib/debug \ ${ICONV_CONFIGURE_ARG} \ --with-expat=yes --with-libexpat-prefix=${LOCALBASE} \ --without-libunwind-ia64 CFLAGS:= ${CFLAGS:C/ +$//} # blanks at EOL creep in sometimes CFLAGS+= -DRL_NO_COMPAT -Wno-unused-function -Wno-unused-variable +CFLAGS+= -Wno-unknown-warning-option EXCLUDE= dejagnu expect sim texinfo intl EXTRACT_AFTER_ARGS= ${EXCLUDE:S/^/--exclude /} EXTRA_PATCHES= ${FILESDIR}/commit-d2176225dc \ ${FILESDIR}/commit-b999e2038d \ ${FILESDIR}/commit-262f62f57d \ ${FILESDIR}/commit-92fce24de2 \ ${FILESDIR}/commit-2d97a5d9d3 \ ${FILESDIR}/commit-906b4aac4c \ ${FILESDIR}/commit-f169cfdc08 \ ${FILESDIR}/commit-12279366d7 \ ${FILESDIR}/commit-386a867618 \ ${FILESDIR}/commit-7efba073e2 LIB_DEPENDS+= libexpat.so:textproc/expat2 VER= ${PORTVERSION:S/.//g} PLIST_SUB= VER=${VER} OPTIONS_DEFINE= DEBUG GDB_LINK GUILE KGDB PYTHON TUI OPTIONS_DEFAULT= GDB_LINK KGDB PYTHON TUI PORT_READLINE OPTIONS_SINGLE= READLINE OPTIONS_SINGLE_READLINE= BUNDLED_READLINE PORT_READLINE GDB_LINK_DESC= Create ${PREFIX}/bin/gdb symlink KGDB_DESC= Kernel Debugging Support BUNDLED_READLINE_DESC= from gdb distfile PORT_READLINE_DESC= from devel/readline port TUI_DESC= Text User Interface enabled OPTIONS_SUB= yes BUNDLED_READLINE_CONFIGURE_OFF= --with-system-readline DEBUG_CFLAGS= -g GUILE_CONFIGURE_WITH= guile GUILE_USES= pkgconfig GUILE_LIB_DEPENDS= libguile-2.0.so:lang/guile2 PORT_READLINE_USES= readline:port PYTHON_CONFIGURE_ON= --with-python=${PYTHON_CMD} PYTHON_CONFIGURE_OFF= --without-python PYTHON_USES= python TUI_CONFIGURE_ENABLE= tui .include .if ! ${PORT_OPTIONS:MBUNDLED_READLINE} EXCLUDE+= readline .endif .if ${ARCH} == "amd64" CONFIGURE_TARGET= x86_64-portbld-freebsd${OSREL} .endif .if ${COMPILER_TYPE} == "clang" CFLAGS+= -Wno-extended-offsetof .endif post-patch: @${REINPLACE_CMD} -e 's|$$| [GDB v${PORTVERSION} for FreeBSD]|' \ ${WRKSRC}/gdb/version.in post-patch-KGDB-on: @${CP} -r ${FILESDIR}/kgdb/*.[ch] ${WRKSRC}/gdb/ @${PATCH} -d ${PATCH_WRKSRC} ${PATCH_ARGS} < ${FILESDIR}/extrapatch-kgdb do-install: ${INSTALL_PROGRAM} ${WRKSRC}/gdb/gdb \ ${STAGEDIR}${PREFIX}/bin/gdb${VER} ${INSTALL_MAN} ${WRKSRC}/gdb/doc/gdb.1 \ ${STAGEDIR}${MAN1PREFIX}/man/man1/gdb${VER}.1 (cd ${WRKSRC}/gdb/data-directory ; \ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} install-syscalls ) do-install-KGDB-on: ${INSTALL_PROGRAM} ${WRKSRC}/gdb/kgdb \ ${STAGEDIR}${PREFIX}/bin/kgdb${VER} ${INSTALL_MAN} ${FILESDIR}/kgdb/kgdb.1 \ ${STAGEDIR}${MAN1PREFIX}/man/man1/kgdb${VER}.1 do-install-TUI-on: ${LN} -sf gdb${VER} ${STAGEDIR}${PREFIX}/bin/gdbtui${VER} do-install-GDB_LINK-on: ${LN} -sf gdb${VER} ${STAGEDIR}${PREFIX}/bin/gdb .if ${PORT_OPTIONS:MKGDB} ${LN} -sf kgdb${VER} ${STAGEDIR}${PREFIX}/bin/kgdb .endif do-install-PYTHON-on: (cd ${WRKSRC}/gdb; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} install-python ) (cd ${WRKSRC}/gdb/data-directory ; \ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} install-python ) . for f in gdb gdb/command gdb/function gdb/printer @(cd ${STAGEDIR}${PREFIX}/share/gdb${VER}/python/${f} ; ${CHMOD} 644 *.py* ) . endfor do-install-GUILE-on: (cd ${WRKSRC}/gdb; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} install-guile ) (cd ${WRKSRC}/gdb/data-directory ; \ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} install-guile ) .include Index: head/devel/gdb/files/patch-gdb_aarch64-fbsd-tdep.c =================================================================== --- head/devel/gdb/files/patch-gdb_aarch64-fbsd-tdep.c (nonexistent) +++ head/devel/gdb/files/patch-gdb_aarch64-fbsd-tdep.c (revision 464688) @@ -0,0 +1,19 @@ +--- gdb/aarch64-fbsd-tdep.c.orig 2018-03-15 16:39:29.951492000 +0100 ++++ gdb/aarch64-fbsd-tdep.c 2018-03-15 16:40:31.553135000 +0100 +@@ -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, static_cast(-1)}, /* mov x0, sp */ ++ {0x91014000, static_cast(-1)}, /* add x0, x0, #SF_UC */ ++ {0xd2803428, static_cast(-1)}, /* mov x8, #SYS_sigreturn */ ++ {0xd4000001, static_cast(-1)}, /* svc 0x0 */ ++ {TRAMP_SENTINEL_INSN, static_cast(-1)} + }, + aarch64_fbsd_sigframe_init + }; Property changes on: head/devel/gdb/files/patch-gdb_aarch64-fbsd-tdep.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/devel/gdb/files/patch-gdb_aarch64-linux-tdep.c =================================================================== --- head/devel/gdb/files/patch-gdb_aarch64-linux-tdep.c (nonexistent) +++ head/devel/gdb/files/patch-gdb_aarch64-linux-tdep.c (revision 464688) @@ -0,0 +1,18 @@ +--- gdb/aarch64-linux-tdep.c.orig 2018-03-15 16:42:39.445907000 +0100 ++++ gdb/aarch64-linux-tdep.c 2018-03-15 16:43:15.167745000 +0100 +@@ -176,12 +176,12 @@ + { + /* movz x8, 0x8b (S=1,o=10,h=0,i=0x8b,r=8) + Soo1 0010 1hhi iiii iiii iiii iiir rrrr */ +- {0xd2801168, -1}, ++ {0xd2801168, static_cast(-1)}, + + /* svc 0x0 (o=0, l=1) + 1101 0100 oooi iiii iiii iiii iii0 00ll */ +- {0xd4000001, -1}, +- {TRAMP_SENTINEL_INSN, -1} ++ {0xd4000001, static_cast(-1)}, ++ {TRAMP_SENTINEL_INSN, static_cast(-1)} + }, + aarch64_linux_sigframe_init + }; Property changes on: head/devel/gdb/files/patch-gdb_aarch64-linux-tdep.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/devel/gdb/files/patch-gdb_aarch64-tdep.c =================================================================== --- head/devel/gdb/files/patch-gdb_aarch64-tdep.c (nonexistent) +++ head/devel/gdb/files/patch-gdb_aarch64-tdep.c (revision 464688) @@ -0,0 +1,11 @@ +--- gdb/aarch64-tdep.c.orig 2018-03-15 16:44:16.746186000 +0100 ++++ gdb/aarch64-tdep.c 2018-03-15 16:44:52.315010000 +0100 +@@ -2412,7 +2412,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] = { static_cast(-1), static_cast(-1) }; + CORE_ADDR loc = pc; + CORE_ADDR closing_insn = 0; + uint32_t insn = read_memory_unsigned_integer (loc, insn_size, Property changes on: head/devel/gdb/files/patch-gdb_aarch64-tdep.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/devel/gdb/files/patch-gdb_alpha-tdep.c =================================================================== --- head/devel/gdb/files/patch-gdb_alpha-tdep.c (nonexistent) +++ head/devel/gdb/files/patch-gdb_alpha-tdep.c (revision 464688) @@ -0,0 +1,11 @@ +--- gdb/alpha-tdep.c.orig 2018-03-15 16:45:58.726244000 +0100 ++++ gdb/alpha-tdep.c 2018-03-15 16:46:30.051357000 +0100 +@@ -769,7 +769,7 @@ + static std::vector + alpha_deal_with_atomic_sequence (struct gdbarch *gdbarch, CORE_ADDR pc) + { +- CORE_ADDR breaks[2] = {-1, -1}; ++ CORE_ADDR breaks[2] = {static_cast(-1), static_cast(-1)}; + CORE_ADDR loc = pc; + CORE_ADDR closing_insn; /* Instruction that closes the atomic sequence. */ + unsigned int insn = alpha_read_insn (gdbarch, loc); Property changes on: head/devel/gdb/files/patch-gdb_alpha-tdep.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/devel/gdb/files/patch-gdb_arch_arm-get-next-pcs.c =================================================================== --- head/devel/gdb/files/patch-gdb_arch_arm-get-next-pcs.c (nonexistent) +++ head/devel/gdb/files/patch-gdb_arch_arm-get-next-pcs.c (revision 464688) @@ -0,0 +1,20 @@ +--- gdb/arch/arm-get-next-pcs.c.orig 2018-03-15 10:02:33.823447000 +0100 ++++ gdb/arch/arm-get-next-pcs.c 2018-03-15 10:29:48.532027000 +0100 +@@ -49,7 +49,7 @@ + thumb_deal_with_atomic_sequence_raw (struct arm_get_next_pcs *self) + { + int byte_order_for_code = self->byte_order_for_code; +- CORE_ADDR breaks[2] = {-1, -1}; ++ CORE_ADDR breaks[2] = {static_cast(-1), static_cast(-1)}; + CORE_ADDR pc = regcache_read_pc (self->regcache); + CORE_ADDR loc = pc; + unsigned short insn1, insn2; +@@ -187,7 +187,7 @@ + arm_deal_with_atomic_sequence_raw (struct arm_get_next_pcs *self) + { + int byte_order_for_code = self->byte_order_for_code; +- CORE_ADDR breaks[2] = {-1, -1}; ++ CORE_ADDR breaks[2] = {static_cast(-1), static_cast(-1)}; + CORE_ADDR pc = regcache_read_pc (self->regcache); + CORE_ADDR loc = pc; + unsigned int insn; Property changes on: head/devel/gdb/files/patch-gdb_arch_arm-get-next-pcs.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/devel/gdb/files/patch-gdb_arm-fbsd-tdep.c =================================================================== --- head/devel/gdb/files/patch-gdb_arm-fbsd-tdep.c (nonexistent) +++ head/devel/gdb/files/patch-gdb_arm-fbsd-tdep.c (revision 464688) @@ -0,0 +1,19 @@ +--- gdb/arm-fbsd-tdep.c.orig 2018-03-15 10:31:28.468820000 +0100 ++++ gdb/arm-fbsd-tdep.c 2018-03-15 10:39:51.558505000 +0100 +@@ -123,11 +123,11 @@ + SIGTRAMP_FRAME, + 4, + { +- {0xe1a0000d, -1}, /* mov r0, sp */ +- {0xe2800040, -1}, /* add r0, r0, #SIGF_UC */ +- {0xe59f700c, -1}, /* ldr r7, [pc, #12] */ +- {0xef0001a1, -1}, /* swi SYS_sigreturn */ +- {TRAMP_SENTINEL_INSN, -1} ++ {0xe1a0000d, static_cast(-1)}, /* mov r0, sp */ ++ {0xe2800040, static_cast(-1)}, /* add r0, r0, #SIGF_UC */ ++ {0xe59f700c, static_cast(-1)}, /* ldr r7, [pc, #12] */ ++ {0xef0001a1, static_cast(-1)}, /* swi SYS_sigreturn */ ++ {TRAMP_SENTINEL_INSN, static_cast(-1)} + }, + arm_fbsd_sigframe_init + }; Property changes on: head/devel/gdb/files/patch-gdb_arm-fbsd-tdep.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/devel/gdb/files/patch-gdb_arm-linux-tdep.c =================================================================== --- head/devel/gdb/files/patch-gdb_arm-linux-tdep.c (nonexistent) +++ head/devel/gdb/files/patch-gdb_arm-linux-tdep.c (revision 464688) @@ -0,0 +1,90 @@ +--- gdb/arm-linux-tdep.c.orig 2018-03-15 10:36:38.853100000 +0100 ++++ gdb/arm-linux-tdep.c 2018-03-15 10:42:37.222568000 +0100 +@@ -385,7 +385,7 @@ + SIGTRAMP_FRAME, + 4, + { +- { ARM_LINUX_SIGRETURN_INSTR, -1 }, ++ { ARM_LINUX_SIGRETURN_INSTR, static_cast(-1) }, + { TRAMP_SENTINEL_INSN } + }, + arm_linux_sigreturn_init +@@ -395,7 +395,7 @@ + SIGTRAMP_FRAME, + 4, + { +- { ARM_LINUX_RT_SIGRETURN_INSTR, -1 }, ++ { ARM_LINUX_RT_SIGRETURN_INSTR, static_cast(-1) }, + { TRAMP_SENTINEL_INSN } + }, + arm_linux_rt_sigreturn_init +@@ -405,8 +405,8 @@ + SIGTRAMP_FRAME, + 4, + { +- { ARM_SET_R7_SIGRETURN, -1 }, +- { ARM_EABI_SYSCALL, -1 }, ++ { ARM_SET_R7_SIGRETURN, static_cast(-1) }, ++ { ARM_EABI_SYSCALL, static_cast(-1) }, + { TRAMP_SENTINEL_INSN } + }, + arm_linux_sigreturn_init +@@ -416,8 +416,8 @@ + SIGTRAMP_FRAME, + 4, + { +- { ARM_SET_R7_RT_SIGRETURN, -1 }, +- { ARM_EABI_SYSCALL, -1 }, ++ { ARM_SET_R7_RT_SIGRETURN, static_cast(-1) }, ++ { ARM_EABI_SYSCALL, static_cast(-1) }, + { TRAMP_SENTINEL_INSN } + }, + arm_linux_rt_sigreturn_init +@@ -427,9 +427,9 @@ + SIGTRAMP_FRAME, + 2, + { +- { THUMB2_SET_R7_SIGRETURN1, -1 }, +- { THUMB2_SET_R7_SIGRETURN2, -1 }, +- { THUMB2_EABI_SYSCALL, -1 }, ++ { THUMB2_SET_R7_SIGRETURN1, static_cast(-1) }, ++ { THUMB2_SET_R7_SIGRETURN2, static_cast(-1) }, ++ { THUMB2_EABI_SYSCALL, static_cast(-1) }, + { TRAMP_SENTINEL_INSN } + }, + arm_linux_sigreturn_init +@@ -439,9 +439,9 @@ + SIGTRAMP_FRAME, + 2, + { +- { THUMB2_SET_R7_RT_SIGRETURN1, -1 }, +- { THUMB2_SET_R7_RT_SIGRETURN2, -1 }, +- { THUMB2_EABI_SYSCALL, -1 }, ++ { THUMB2_SET_R7_RT_SIGRETURN1, static_cast(-1) }, ++ { THUMB2_SET_R7_RT_SIGRETURN2, static_cast(-1) }, ++ { THUMB2_EABI_SYSCALL, static_cast(-1) }, + { TRAMP_SENTINEL_INSN } + }, + arm_linux_rt_sigreturn_init +@@ -451,8 +451,8 @@ + NORMAL_FRAME, + 4, + { +- { ARM_OABI_SYSCALL_RESTART_SYSCALL, -1 }, +- { ARM_LDR_PC_SP_12, -1 }, ++ { ARM_OABI_SYSCALL_RESTART_SYSCALL, static_cast(-1) }, ++ { ARM_LDR_PC_SP_12, static_cast(-1) }, + { TRAMP_SENTINEL_INSN } + }, + arm_linux_restart_syscall_init +@@ -462,8 +462,8 @@ + NORMAL_FRAME, + 4, + { +- { ARM_OABI_SYSCALL_RESTART_SYSCALL, -1 }, +- { ARM_LDR_PC_SP_4, -1 }, ++ { ARM_OABI_SYSCALL_RESTART_SYSCALL, static_cast(-1) }, ++ { ARM_LDR_PC_SP_4, static_cast(-1) }, + { TRAMP_SENTINEL_INSN } + }, + arm_linux_restart_syscall_init Property changes on: head/devel/gdb/files/patch-gdb_arm-linux-tdep.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/devel/gdb/files/patch-gdb_arm-obsd-tdep.c =================================================================== --- head/devel/gdb/files/patch-gdb_arm-obsd-tdep.c (nonexistent) +++ head/devel/gdb/files/patch-gdb_arm-obsd-tdep.c (revision 464688) @@ -0,0 +1,19 @@ +--- gdb/arm-obsd-tdep.c.orig 2018-03-15 10:43:44.244835000 +0100 ++++ gdb/arm-obsd-tdep.c 2018-03-15 10:44:36.608679000 +0100 +@@ -58,11 +58,11 @@ + SIGTRAMP_FRAME, + 4, + { +- { 0xe28d0010, -1 }, /* add r0, sp, #16 */ +- { 0xef000067, -1 }, /* swi SYS_sigreturn */ +- { 0xef000001, -1 }, /* swi SYS_exit */ +- { 0xeafffffc, -1 }, /* b . - 8 */ +- { TRAMP_SENTINEL_INSN, -1 } ++ { 0xe28d0010, static_cast(-1) }, /* add r0, sp, #16 */ ++ { 0xef000067, static_cast(-1) }, /* swi SYS_sigreturn */ ++ { 0xef000001, static_cast(-1) }, /* swi SYS_exit */ ++ { 0xeafffffc, static_cast(-1) }, /* b . - 8 */ ++ { TRAMP_SENTINEL_INSN, static_cast(-1) } + }, + armobsd_sigframe_init + }; Property changes on: head/devel/gdb/files/patch-gdb_arm-obsd-tdep.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/devel/gdb/files/patch-gdb_bfin-linux-tdep.c =================================================================== --- head/devel/gdb/files/patch-gdb_bfin-linux-tdep.c (nonexistent) +++ head/devel/gdb/files/patch-gdb_bfin-linux-tdep.c (revision 464688) @@ -0,0 +1,11 @@ +--- gdb/bfin-linux-tdep.c.orig 2018-03-15 10:45:37.746477000 +0100 ++++ gdb/bfin-linux-tdep.c 2018-03-15 10:46:02.925435000 +0100 +@@ -121,7 +121,7 @@ + { + { 0x00ADE128, 0xffffffff }, /* P0 = __NR_rt_sigreturn; */ + { 0x00A0, 0xffff }, /* EXCPT 0; */ +- { TRAMP_SENTINEL_INSN, -1 }, ++ { TRAMP_SENTINEL_INSN, static_cast(-1) }, + }, + bfin_linux_sigframe_init, + }; Property changes on: head/devel/gdb/files/patch-gdb_bfin-linux-tdep.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/devel/gdb/files/patch-gdb_completer.c =================================================================== --- head/devel/gdb/files/patch-gdb_completer.c (nonexistent) +++ head/devel/gdb/files/patch-gdb_completer.c (revision 464688) @@ -0,0 +1,11 @@ +--- gdb/completer.c.orig 2018-03-15 16:51:01.106677000 +0100 ++++ gdb/completer.c 2018-03-15 16:51:47.055214000 +0100 +@@ -2038,7 +2038,7 @@ + /* We don't rely on readline appending the quote char as + delimiter as then readline wouldn't append the ' ' after the + completion. */ +- char buf[2] = { quote_char () }; ++ char buf[2] = { static_cast (quote_char ()) }; + + match_list[0] = reconcat (match_list[0], match_list[0], + buf, (char *) NULL); Property changes on: head/devel/gdb/files/patch-gdb_completer.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/devel/gdb/files/patch-gdb_hppa-nbsd-tdep.c =================================================================== --- head/devel/gdb/files/patch-gdb_hppa-nbsd-tdep.c (nonexistent) +++ head/devel/gdb/files/patch-gdb_hppa-nbsd-tdep.c (revision 464688) @@ -0,0 +1,44 @@ +--- gdb/hppa-nbsd-tdep.c.orig 2018-03-15 15:58:14.876431000 +0100 ++++ gdb/hppa-nbsd-tdep.c 2018-03-15 16:00:44.247395000 +0100 +@@ -71,25 +71,25 @@ + SIGTRAMP_FRAME, + 4, + { +- { 0xc7d7c012, -1 }, /* bb,>=,n %arg3, 30, 1f */ +- { 0xd6e01c1e, -1 }, /* depwi 0,31,2,%arg3 */ +- { 0x0ee81093, -1 }, /* ldw 4(%arg3), %r19 */ +- { 0x0ee01097, -1 }, /* ldw 0(%arg3), %arg3 */ ++ { 0xc7d7c012, static_cast(-1) }, /* bb,>=,n %arg3, 30, 1f */ ++ { 0xd6e01c1e, static_cast(-1) }, /* depwi 0,31,2,%arg3 */ ++ { 0x0ee81093, static_cast(-1) }, /* ldw 4(%arg3), %r19 */ ++ { 0x0ee01097, static_cast(-1) }, /* ldw 0(%arg3), %arg3 */ + /* 1: */ +- { 0xe8404000, -1 }, /* blr %r0, %rp */ +- { 0xeae0c002, -1 }, /* bv,n %r0(%arg3) */ +- { 0x08000240, -1 }, /* nop */ ++ { 0xe8404000, static_cast(-1) }, /* blr %r0, %rp */ ++ { 0xeae0c002, static_cast(-1) }, /* bv,n %r0(%arg3) */ ++ { 0x08000240, static_cast(-1) }, /* nop */ + +- { 0x0803025a, -1 }, /* copy %r3, %arg0 */ +- { 0x20200801, -1 }, /* ldil -40000000, %r1 */ +- { 0xe420e008, -1 }, /* be,l 4(%sr7, %r1), %sr0, %r31 */ +- { 0x34160268, -1 }, /* ldi 134, %t1 ; SYS_setcontext */ ++ { 0x0803025a, static_cast(-1) }, /* copy %r3, %arg0 */ ++ { 0x20200801, static_cast(-1) }, /* ldil -40000000, %r1 */ ++ { 0xe420e008, static_cast(-1) }, /* be,l 4(%sr7, %r1), %sr0, %r31 */ ++ { 0x34160268, static_cast(-1) }, /* ldi 134, %t1 ; SYS_setcontext */ + +- { 0x081c025a, -1 }, /* copy ret0, %arg0 */ +- { 0x20200801, -1 }, /* ldil -40000000, %r1 */ +- { 0xe420e008, -1 }, /* be,l 4(%sr7, %r1), %sr0, %r31 */ +- { 0x34160002, -1 }, /* ldi 1, %t1 ; SYS_exit */ +- { TRAMP_SENTINEL_INSN, -1 } ++ { 0x081c025a, static_cast(-1) }, /* copy ret0, %arg0 */ ++ { 0x20200801, static_cast(-1) }, /* ldil -40000000, %r1 */ ++ { 0xe420e008, static_cast(-1) }, /* be,l 4(%sr7, %r1), %sr0, %r31 */ ++ { 0x34160002, static_cast(-1) }, /* ldi 1, %t1 ; SYS_exit */ ++ { TRAMP_SENTINEL_INSN, static_cast(-1) } + }, + hppanbsd_sigtramp_cache_init + }; Property changes on: head/devel/gdb/files/patch-gdb_hppa-nbsd-tdep.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/devel/gdb/files/patch-gdb_i386-nbsd-tdep.c =================================================================== --- head/devel/gdb/files/patch-gdb_i386-nbsd-tdep.c (nonexistent) +++ head/devel/gdb/files/patch-gdb_i386-nbsd-tdep.c (revision 464688) @@ -0,0 +1,157 @@ +--- gdb/i386-nbsd-tdep.c.orig 2018-03-15 10:50:06.446434000 +0100 ++++ gdb/i386-nbsd-tdep.c 2018-03-15 11:04:42.700720000 +0100 +@@ -106,19 +106,19 @@ + SIGTRAMP_FRAME, + 1, + { +- { 0x8d, -1 }, { 0x44, -1 }, { 0x24, -1 }, { 0x10, -1 }, ++ { 0x8d, static_cast(-1) }, { 0x44, static_cast(-1) }, { 0x24, static_cast(-1) }, { 0x10, static_cast(-1) }, + /* leal 0x10(%esp), %eax */ +- { 0x50, -1 }, /* pushl %eax */ +- { 0x50, -1 }, /* pushl %eax */ +- { 0xb8, -1 }, { 0x27, -1 }, {0x01, -1 }, {0x00, -1 }, {0x00, -1 }, ++ { 0x50, static_cast(-1) }, /* pushl %eax */ ++ { 0x50, static_cast(-1) }, /* pushl %eax */ ++ { 0xb8, static_cast(-1) }, { 0x27, static_cast(-1) }, {0x01, static_cast(-1) }, {0x00, static_cast(-1) }, {0x00, static_cast(-1) }, + /* movl $0x127, %eax # __sigreturn14 */ +- { 0xcd, -1 }, { 0x80, -1}, ++ { 0xcd, static_cast(-1) }, { 0x80, static_cast(-1)}, + /* int $0x80 */ +- { 0xb8, -1 }, { 0x01, -1 }, {0x00, -1 }, {0x00, -1 }, {0x00, -1 }, ++ { 0xb8, static_cast(-1) }, { 0x01, static_cast(-1) }, {0x00, static_cast(-1) }, {0x00, static_cast(-1) }, {0x00, static_cast(-1) }, + /* movl $0x1, %eax # exit */ +- { 0xcd, -1 }, { 0x80, -1}, ++ { 0xcd, static_cast(-1) }, { 0x80, static_cast(-1)}, + /* int $0x80 */ +- { TRAMP_SENTINEL_INSN, -1 } ++ { TRAMP_SENTINEL_INSN, static_cast(-1) } + }, + i386nbsd_sigtramp_cache_init + }; +@@ -128,21 +128,21 @@ + SIGTRAMP_FRAME, + 1, + { +- { 0x8d, -1 }, { 0x44, -1 }, { 0x24, -1 }, { 0x0c, -1 }, ++ { 0x8d, static_cast(-1) }, { 0x44, static_cast(-1) }, { 0x24, static_cast(-1) }, { 0x0c, static_cast(-1) }, + /* leal 0x0c(%esp), %eax */ +- { 0x89, -1 }, { 0x44, -1 }, { 0x24, -1 }, { 0x04, -1 }, ++ { 0x89, static_cast(-1) }, { 0x44, static_cast(-1) }, { 0x24, static_cast(-1) }, { 0x04, static_cast(-1) }, + /* movl %eax, 0x4(%esp) */ +- { 0xb8, -1 }, { 0x27, -1 }, {0x01, -1 }, {0x00, -1 }, {0x00, -1 }, ++ { 0xb8, static_cast(-1) }, { 0x27, static_cast(-1) }, {0x01, static_cast(-1) }, {0x00, static_cast(-1) }, {0x00, static_cast(-1) }, + /* movl $0x127, %eax # __sigreturn14 */ +- { 0xcd, -1 }, { 0x80, -1}, ++ { 0xcd, static_cast(-1) }, { 0x80, static_cast(-1)}, + /* int $0x80 */ +- { 0x89, -1 }, { 0x44, -1 }, { 0x24, -1 }, { 0x04, -1 }, ++ { 0x89, static_cast(-1) }, { 0x44, static_cast(-1) }, { 0x24, static_cast(-1) }, { 0x04, static_cast(-1) }, + /* movl %eax, 0x4(%esp) */ +- { 0xb8, -1 }, { 0x01, -1 }, {0x00, -1 }, {0x00, -1 }, {0x00, -1 }, ++ { 0xb8, static_cast(-1) }, { 0x01, static_cast(-1) }, {0x00, static_cast(-1) }, {0x00, static_cast(-1) }, {0x00, static_cast(-1) }, + /* movl $0x1, %eax */ +- { 0xcd, -1 }, { 0x80, -1}, ++ { 0xcd, static_cast(-1) }, { 0x80, static_cast(-1)}, + /* int $0x80 */ +- { TRAMP_SENTINEL_INSN, -1 } ++ { TRAMP_SENTINEL_INSN, static_cast(-1) } + }, + i386nbsd_sigtramp_cache_init + }; +@@ -152,21 +152,22 @@ + SIGTRAMP_FRAME, + 1, + { +- { 0x8b, -1 }, { 0x44, -1 }, { 0x24, -1 }, { 0x08, -1 }, ++ { 0x8b, static_cast(-1) }, { 0x44, static_cast(-1) }, { 0x24, static_cast(-1) }, { 0x08, static_cast(-1) }, + /* movl 8(%esp),%eax */ +- { 0x89, -1 }, { 0x44, -1 }, { 0x24, -1 }, { 0x04, -1 }, ++ { 0x89, static_cast(-1) }, { 0x44, static_cast(-1) }, { 0x24, static_cast(-1) }, { 0x04, static_cast(-1) }, + /* movl %eax, 0x4(%esp) */ +- { 0xb8, -1 }, { 0x34, -1 }, { 0x01, -1 }, { 0x00, -1 }, { 0x00, -1 }, ++ { 0xb8, static_cast(-1) }, { 0x34, static_cast(-1) }, { 0x01, static_cast(-1) }, { 0x00, static_cast(-1) }, { 0x00, static_cast(-1) }, + /* movl $0x134, %eax # setcontext */ +- { 0xcd, -1 }, { 0x80, -1 }, ++ { 0xcd, static_cast(-1) }, { 0x80, static_cast(-1) }, + /* int $0x80 */ +- { 0x89, -1 }, { 0x44, -1 }, { 0x24, -1 }, { 0x04, -1 }, ++ { 0x89, static_cast(-1) }, { 0x44, static_cast(-1) }, { 0x24, static_cast(-1) }, { 0x04, static_cast(-1) }, ++ { 0x89, static_cast(-1) }, { 0x44, static_cast(-1) }, { 0x24, static_cast(-1) }, { 0x04, static_cast(-1) }, + /* movl %eax, 0x4(%esp) */ +- { 0xb8, -1 }, { 0x01, -1 }, { 0x00, -1 }, { 0x00, -1 }, { 0x00, -1 }, ++ { 0xb8, static_cast(-1) }, { 0x01, static_cast(-1) }, {0x00, static_cast(-1) }, {0x00, static_cast(-1) }, {0x00, static_cast(-1) }, + /* movl $0x1, %eax */ +- { 0xcd, -1 }, { 0x80, -1 }, ++ { 0xcd, static_cast(-1) }, { 0x80, static_cast(-1)}, + /* int $0x80 */ +- { TRAMP_SENTINEL_INSN, -1 } ++ { TRAMP_SENTINEL_INSN, static_cast(-1) } + }, + i386nbsd_sigtramp_cache_init + }; +@@ -176,22 +177,22 @@ + SIGTRAMP_FRAME, + 1, + { +- { 0x8d, -1 }, { 0x84, -1 }, { 0x24, -1 }, +- { 0x8c, -1 }, { 0x00, -1 }, { 0x00, -1 }, { 0x00, -1 }, ++ { 0x8d, static_cast(-1) }, { 0x84, static_cast(-1) }, { 0x24, static_cast(-1) }, ++ { 0x8c, static_cast(-1) }, { 0x00, static_cast(-1) }, { 0x00, static_cast(-1) }, { 0x00, static_cast(-1) }, + /* leal 0x8c(%esp), %eax */ +- { 0x89, -1 }, { 0x44, -1 }, { 0x24, -1 }, { 0x04, -1 }, ++ { 0x89, static_cast(-1) }, { 0x44, static_cast(-1) }, { 0x24, static_cast(-1) }, { 0x04, static_cast(-1) }, + /* movl %eax, 0x4(%esp) */ +- { 0xb8, -1 }, { 0x34, -1 }, { 0x01, -1 }, { 0x00, -1 }, { 0x00, -1 }, ++ { 0xb8, static_cast(-1) }, { 0x34, static_cast(-1) }, { 0x01, static_cast(-1) }, { 0x00, static_cast(-1) }, { 0x00, static_cast(-1) }, + /* movl $0x134, %eax # setcontext */ +- { 0xcd, -1 }, { 0x80, -1}, ++ { 0xcd, static_cast(-1) }, { 0x80, static_cast(-1)}, + /* int $0x80 */ +- { 0x89, -1 }, { 0x44, -1 }, { 0x24, -1 }, { 0x04, -1 }, ++ { 0x89, static_cast(-1) }, { 0x44, static_cast(-1) }, { 0x24, static_cast(-1) }, { 0x04, static_cast(-1) }, + /* movl %eax, 0x4(%esp) */ +- { 0xb8, -1 }, { 0x01, -1 }, {0x00, -1 }, {0x00, -1 }, {0x00, -1 }, ++ { 0xb8, static_cast(-1) }, { 0x01, static_cast(-1) }, {0x00, static_cast(-1) }, {0x00, static_cast(-1) }, {0x00, static_cast(-1) }, + /* movl $0x1, %eax */ +- { 0xcd, -1 }, { 0x80, -1}, ++ { 0xcd, static_cast(-1) }, { 0x80, static_cast(-1)}, + /* int $0x80 */ +- { TRAMP_SENTINEL_INSN, -1 } ++ { TRAMP_SENTINEL_INSN, static_cast(-1) } + }, + i386nbsd_sigtramp_cache_init + }; +@@ -201,23 +202,23 @@ + SIGTRAMP_FRAME, + 1, + { +- { 0x8d, -1 }, { 0x84, -1 }, { 0x24, -1 }, +- { 0x8c, -1 }, { 0x00, -1 }, { 0x00, -1 }, { 0x00, -1 }, ++ { 0x8d, static_cast(-1) }, { 0x84, static_cast(-1) }, { 0x24, static_cast(-1) }, ++ { 0x8c, static_cast(-1) }, { 0x00, static_cast(-1) }, { 0x00, static_cast(-1) }, { 0x00, static_cast(-1) }, + /* leal 0x8c(%esp), %eax */ +- { 0x89, -1 }, { 0x44, -1 }, { 0x24, -1 }, { 0x04, -1 }, ++ { 0x89, static_cast(-1) }, { 0x44, static_cast(-1) }, { 0x24, static_cast(-1) }, { 0x04, static_cast(-1) }, + /* movl %eax, 0x4(%esp) */ +- { 0xb8, -1 }, { 0x34, -1 }, { 0x01, -1 }, { 0x00, -1 }, { 0x00, -1 }, ++ { 0xb8, static_cast(-1) }, { 0x34, static_cast(-1) }, { 0x01, static_cast(-1) }, { 0x00, static_cast(-1) }, { 0x00, static_cast(-1) }, + /* movl $0x134, %eax # setcontext */ +- { 0xcd, -1 }, { 0x80, -1}, ++ { 0xcd, static_cast(-1) }, { 0x80, static_cast(-1)}, + /* int $0x80 */ +- { 0xc7, -1 }, { 0x44, -1 }, { 0x24, -1 }, { 0x04, -1 }, +- { 0xff, -1 }, { 0xff, -1 }, { 0xff, -1 }, { 0xff, -1 }, ++ { 0xc7, static_cast(-1) }, { 0x44, static_cast(-1) }, { 0x24, static_cast(-1) }, { 0x04, static_cast(-1) }, ++ { 0xff, static_cast(-1) }, { 0xff, static_cast(-1) }, { 0xff, static_cast(-1) }, { 0xff, static_cast(-1) }, + /* movl $0xffffffff,0x4(%esp) */ +- { 0xb8, -1 }, { 0x01, -1 }, {0x00, -1 }, {0x00, -1 }, {0x00, -1 }, ++ { 0xb8, static_cast(-1) }, { 0x01, static_cast(-1) }, {0x00, static_cast(-1) }, {0x00, static_cast(-1) }, {0x00, static_cast(-1) }, + /* movl $0x1, %eax */ +- { 0xcd, -1 }, { 0x80, -1}, ++ { 0xcd, static_cast(-1) }, { 0x80, static_cast(-1)}, + /* int $0x80 */ +- { TRAMP_SENTINEL_INSN, -1 } ++ { TRAMP_SENTINEL_INSN, static_cast(-1) } + }, + i386nbsd_sigtramp_cache_init + }; Property changes on: head/devel/gdb/files/patch-gdb_i386-nbsd-tdep.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/devel/gdb/files/patch-gdb_linespec.c =================================================================== --- head/devel/gdb/files/patch-gdb_linespec.c (nonexistent) +++ head/devel/gdb/files/patch-gdb_linespec.c (revision 464688) @@ -0,0 +1,11 @@ +--- gdb/linespec.c.orig 2018-03-15 16:52:46.342610000 +0100 ++++ gdb/linespec.c 2018-03-15 16:53:18.324077000 +0100 +@@ -2912,7 +2912,7 @@ + new "quote" char. */ + if (tracker.quote_char ()) + { +- char quote_char_str[2] = { tracker.quote_char () }; ++ char quote_char_str[2] = { static_cast(tracker.quote_char () )}; + + fn = reconcat (fn, fn, quote_char_str, (char *) NULL); + tracker.set_quote_char (':'); Property changes on: head/devel/gdb/files/patch-gdb_linespec.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/devel/gdb/files/patch-gdb_microblaze-linux-tdep.c =================================================================== --- head/devel/gdb/files/patch-gdb_microblaze-linux-tdep.c (nonexistent) +++ head/devel/gdb/files/patch-gdb_microblaze-linux-tdep.c (revision 464688) @@ -0,0 +1,13 @@ +--- gdb/microblaze-linux-tdep.c.orig 2018-03-15 11:06:05.114101000 +0100 ++++ gdb/microblaze-linux-tdep.c 2018-03-15 11:06:36.384643000 +0100 +@@ -107,8 +107,8 @@ + SIGTRAMP_FRAME, + 4, + { +- { 0x31800077, -1 }, /* addik R12,R0,119. */ +- { 0xb9cc0008, -1 }, /* brki R14,8. */ ++ { 0x31800077, static_cast(-1) }, /* addik R12,R0,119. */ ++ { 0xb9cc0008, static_cast(-1) }, /* brki R14,8. */ + { TRAMP_SENTINEL_INSN }, + }, + microblaze_linux_sighandler_cache_init Property changes on: head/devel/gdb/files/patch-gdb_microblaze-linux-tdep.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/devel/gdb/files/patch-gdb_mips-fbsd-tdep.c =================================================================== --- head/devel/gdb/files/patch-gdb_mips-fbsd-tdep.c (nonexistent) +++ head/devel/gdb/files/patch-gdb_mips-fbsd-tdep.c (revision 464688) @@ -0,0 +1,53 @@ +--- gdb/mips-fbsd-tdep.c.orig 2018-03-15 11:11:08.892968000 +0100 ++++ gdb/mips-fbsd-tdep.c 2018-03-15 11:14:38.323126000 +0100 +@@ -342,11 +342,11 @@ + SIGTRAMP_FRAME, + MIPS_INSN32_SIZE, + { +- { MIPS_INST_ADDIU_A0_SP_O32, -1 }, /* addiu a0, sp, SIGF_UC */ +- { MIPS_INST_LI_V0_SIGRETURN, -1 }, /* li v0, SYS_sigreturn */ +- { MIPS_INST_SYSCALL, -1 }, /* syscall */ +- { MIPS_INST_BREAK, -1 }, /* break */ +- { TRAMP_SENTINEL_INSN, -1 } ++ { MIPS_INST_ADDIU_A0_SP_O32, static_cast(-1) }, /* addiu a0, sp, SIGF_UC */ ++ { MIPS_INST_LI_V0_SIGRETURN, static_cast(-1) }, /* li v0, SYS_sigreturn */ ++ { MIPS_INST_SYSCALL, static_cast(-1) }, /* syscall */ ++ { MIPS_INST_BREAK, static_cast(-1) }, /* break */ ++ { TRAMP_SENTINEL_INSN, static_cast(-1) } + }, + mips_fbsd_sigframe_init + }; +@@ -434,11 +434,11 @@ + SIGTRAMP_FRAME, + MIPS_INSN32_SIZE, + { +- { MIPS_INST_ADDIU_A0_SP_N32, -1 }, /* addiu a0, sp, SIGF_UC */ +- { MIPS_INST_LI_V0_SIGRETURN, -1 }, /* li v0, SYS_sigreturn */ +- { MIPS_INST_SYSCALL, -1 }, /* syscall */ +- { MIPS_INST_BREAK, -1 }, /* break */ +- { TRAMP_SENTINEL_INSN, -1 } ++ { MIPS_INST_ADDIU_A0_SP_N32, static_cast(-1) }, /* addiu a0, sp, SIGF_UC */ ++ { MIPS_INST_LI_V0_SIGRETURN, static_cast(-1) }, /* li v0, SYS_sigreturn */ ++ { MIPS_INST_SYSCALL, static_cast(-1) }, /* syscall */ ++ { MIPS_INST_BREAK, static_cast(-1) }, /* break */ ++ { TRAMP_SENTINEL_INSN, static_cast(-1) } + }, + mips64_fbsd_sigframe_init + }; +@@ -451,11 +451,11 @@ + SIGTRAMP_FRAME, + MIPS_INSN32_SIZE, + { +- { MIPS_INST_DADDIU_A0_SP_N64, -1 }, /* daddiu a0, sp, SIGF_UC */ +- { MIPS_INST_LI_V0_SIGRETURN, -1 }, /* li v0, SYS_sigreturn */ +- { MIPS_INST_SYSCALL, -1 }, /* syscall */ +- { MIPS_INST_BREAK, -1 }, /* break */ +- { TRAMP_SENTINEL_INSN, -1 } ++ { MIPS_INST_DADDIU_A0_SP_N64, static_cast(-1) }, /* daddiu a0, sp, SIGF_UC */ ++ { MIPS_INST_LI_V0_SIGRETURN, static_cast(-1) }, /* li v0, SYS_sigreturn */ ++ { MIPS_INST_SYSCALL, static_cast(-1) }, /* syscall */ ++ { MIPS_INST_BREAK, static_cast(-1) }, /* break */ ++ { TRAMP_SENTINEL_INSN, static_cast(-1) } + }, + mips64_fbsd_sigframe_init + }; Property changes on: head/devel/gdb/files/patch-gdb_mips-fbsd-tdep.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/devel/gdb/files/patch-gdb_mips-linux-tdep.c =================================================================== --- head/devel/gdb/files/patch-gdb_mips-linux-tdep.c (nonexistent) +++ head/devel/gdb/files/patch-gdb_mips-linux-tdep.c (revision 464688) @@ -0,0 +1,122 @@ +--- gdb/mips-linux-tdep.c.orig 2018-03-15 11:07:40.749034000 +0100 ++++ gdb/mips-linux-tdep.c 2018-03-15 11:09:52.878504000 +0100 +@@ -831,9 +831,9 @@ + SIGTRAMP_FRAME, + 4, + { +- { MIPS_INST_LI_V0_SIGRETURN, -1 }, +- { MIPS_INST_SYSCALL, -1 }, +- { TRAMP_SENTINEL_INSN, -1 } ++ { MIPS_INST_LI_V0_SIGRETURN, static_cast(-1) }, ++ { MIPS_INST_SYSCALL, static_cast(-1) }, ++ { TRAMP_SENTINEL_INSN, static_cast(-1) } + }, + mips_linux_o32_sigframe_init, + mips_linux_sigframe_validate +@@ -843,9 +843,9 @@ + SIGTRAMP_FRAME, + 4, + { +- { MIPS_INST_LI_V0_RT_SIGRETURN, -1 }, +- { MIPS_INST_SYSCALL, -1 }, +- { TRAMP_SENTINEL_INSN, -1 } }, ++ { MIPS_INST_LI_V0_RT_SIGRETURN, static_cast(-1) }, ++ { MIPS_INST_SYSCALL, static_cast(-1) }, ++ { TRAMP_SENTINEL_INSN, static_cast(-1) } }, + mips_linux_o32_sigframe_init, + mips_linux_sigframe_validate + }; +@@ -854,9 +854,9 @@ + SIGTRAMP_FRAME, + 4, + { +- { MIPS_INST_LI_V0_N32_RT_SIGRETURN, -1 }, +- { MIPS_INST_SYSCALL, -1 }, +- { TRAMP_SENTINEL_INSN, -1 } ++ { MIPS_INST_LI_V0_N32_RT_SIGRETURN, static_cast(-1) }, ++ { MIPS_INST_SYSCALL, static_cast(-1) }, ++ { TRAMP_SENTINEL_INSN, static_cast(-1) } + }, + mips_linux_n32n64_sigframe_init, + mips_linux_sigframe_validate +@@ -866,9 +866,9 @@ + SIGTRAMP_FRAME, + 4, + { +- { MIPS_INST_LI_V0_N64_RT_SIGRETURN, -1 }, +- { MIPS_INST_SYSCALL, -1 }, +- { TRAMP_SENTINEL_INSN, -1 } ++ { MIPS_INST_LI_V0_N64_RT_SIGRETURN, static_cast(-1) }, ++ { MIPS_INST_SYSCALL, static_cast(-1) }, ++ { TRAMP_SENTINEL_INSN, static_cast(-1) } + }, + mips_linux_n32n64_sigframe_init, + mips_linux_sigframe_validate +@@ -878,11 +878,11 @@ + SIGTRAMP_FRAME, + 2, + { +- { MICROMIPS_INST_LI_V0, -1 }, +- { MIPS_NR_sigreturn, -1 }, +- { MICROMIPS_INST_POOL32A, -1 }, +- { MICROMIPS_INST_SYSCALL, -1 }, +- { TRAMP_SENTINEL_INSN, -1 } ++ { MICROMIPS_INST_LI_V0, static_cast(-1) }, ++ { MIPS_NR_sigreturn, static_cast(-1) }, ++ { MICROMIPS_INST_POOL32A, static_cast(-1) }, ++ { MICROMIPS_INST_SYSCALL, static_cast(-1) }, ++ { TRAMP_SENTINEL_INSN, static_cast(-1) } + }, + mips_linux_o32_sigframe_init, + micromips_linux_sigframe_validate +@@ -892,11 +892,11 @@ + SIGTRAMP_FRAME, + 2, + { +- { MICROMIPS_INST_LI_V0, -1 }, +- { MIPS_NR_rt_sigreturn, -1 }, +- { MICROMIPS_INST_POOL32A, -1 }, +- { MICROMIPS_INST_SYSCALL, -1 }, +- { TRAMP_SENTINEL_INSN, -1 } ++ { MICROMIPS_INST_LI_V0, static_cast(-1) }, ++ { MIPS_NR_rt_sigreturn, static_cast(-1) }, ++ { MICROMIPS_INST_POOL32A, static_cast(-1) }, ++ { MICROMIPS_INST_SYSCALL, static_cast(-1) }, ++ { TRAMP_SENTINEL_INSN, static_cast(-1) } + }, + mips_linux_o32_sigframe_init, + micromips_linux_sigframe_validate +@@ -906,11 +906,11 @@ + SIGTRAMP_FRAME, + 2, + { +- { MICROMIPS_INST_LI_V0, -1 }, +- { MIPS_NR_N32_rt_sigreturn, -1 }, +- { MICROMIPS_INST_POOL32A, -1 }, +- { MICROMIPS_INST_SYSCALL, -1 }, +- { TRAMP_SENTINEL_INSN, -1 } ++ { MICROMIPS_INST_LI_V0, static_cast(-1) }, ++ { MIPS_NR_N32_rt_sigreturn, static_cast(-1) }, ++ { MICROMIPS_INST_POOL32A, static_cast(-1) }, ++ { MICROMIPS_INST_SYSCALL, static_cast(-1) }, ++ { TRAMP_SENTINEL_INSN, static_cast(-1) } + }, + mips_linux_n32n64_sigframe_init, + micromips_linux_sigframe_validate +@@ -920,11 +920,11 @@ + SIGTRAMP_FRAME, + 2, + { +- { MICROMIPS_INST_LI_V0, -1 }, +- { MIPS_NR_N64_rt_sigreturn, -1 }, +- { MICROMIPS_INST_POOL32A, -1 }, +- { MICROMIPS_INST_SYSCALL, -1 }, +- { TRAMP_SENTINEL_INSN, -1 } ++ { MICROMIPS_INST_LI_V0, static_cast(-1) }, ++ { MIPS_NR_N64_rt_sigreturn, static_cast(-1) }, ++ { MICROMIPS_INST_POOL32A, static_cast(-1) }, ++ { MICROMIPS_INST_SYSCALL, static_cast(-1) }, ++ { TRAMP_SENTINEL_INSN, static_cast(-1) } + }, + mips_linux_n32n64_sigframe_init, + micromips_linux_sigframe_validate Property changes on: head/devel/gdb/files/patch-gdb_mips-linux-tdep.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/devel/gdb/files/patch-gdb_mips-tdep.c =================================================================== --- head/devel/gdb/files/patch-gdb_mips-tdep.c (nonexistent) +++ head/devel/gdb/files/patch-gdb_mips-tdep.c (revision 464688) @@ -0,0 +1,20 @@ +--- gdb/mips-tdep.c.orig 2018-03-15 11:15:08.500010000 +0100 ++++ gdb/mips-tdep.c 2018-03-15 11:16:05.745083000 +0100 +@@ -3882,7 +3882,7 @@ + static std::vector + mips_deal_with_atomic_sequence (struct gdbarch *gdbarch, CORE_ADDR pc) + { +- CORE_ADDR breaks[2] = {-1, -1}; ++ CORE_ADDR breaks[2] = {static_cast(-1), static_cast(-1)}; + CORE_ADDR loc = pc; + CORE_ADDR branch_bp; /* Breakpoint at branch instruction's destination. */ + ULONGEST insn; +@@ -3985,7 +3985,7 @@ + { + const int atomic_sequence_length = 16; /* Instruction sequence length. */ + int last_breakpoint = 0; /* Defaults to 0 (no breakpoints placed). */ +- CORE_ADDR breaks[2] = {-1, -1}; ++ CORE_ADDR breaks[2] = {static_cast(-1), static_cast(-1)}; + CORE_ADDR branch_bp = 0; /* Breakpoint at branch instruction's + destination. */ + CORE_ADDR loc = pc; Property changes on: head/devel/gdb/files/patch-gdb_mips-tdep.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/devel/gdb/files/patch-gdb_mips64-obsd-tdep.c =================================================================== --- head/devel/gdb/files/patch-gdb_mips64-obsd-tdep.c (nonexistent) +++ head/devel/gdb/files/patch-gdb_mips64-obsd-tdep.c (revision 464688) @@ -0,0 +1,19 @@ +--- gdb/mips64-obsd-tdep.c.orig 2018-03-15 16:47:34.626536000 +0100 ++++ gdb/mips64-obsd-tdep.c 2018-03-15 16:48:17.150853000 +0100 +@@ -127,11 +127,11 @@ + SIGTRAMP_FRAME, + MIPS_INSN32_SIZE, + { +- { 0x67a40020, -1 }, /* daddiu a0,sp,32 */ +- { 0x24020067, -1 }, /* li v0,103 */ +- { 0x0000000c, -1 }, /* syscall */ +- { 0x0000000d, -1 }, /* break */ +- { TRAMP_SENTINEL_INSN, -1 } ++ { 0x67a40020, static_cast(-1) }, /* daddiu a0,sp,32 */ ++ { 0x24020067, static_cast(-1) }, /* li v0,103 */ ++ { 0x0000000c, static_cast(-1) }, /* syscall */ ++ { 0x0000000d, static_cast(-1) }, /* break */ ++ { TRAMP_SENTINEL_INSN, static_cast(-1) } + }, + mips64obsd_sigframe_init + }; Property changes on: head/devel/gdb/files/patch-gdb_mips64-obsd-tdep.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/devel/gdb/files/patch-gdb_mn10300-linux-tdep.c =================================================================== --- head/devel/gdb/files/patch-gdb_mn10300-linux-tdep.c (nonexistent) +++ head/devel/gdb/files/patch-gdb_mn10300-linux-tdep.c (revision 464688) @@ -0,0 +1,42 @@ +--- gdb/mn10300-linux-tdep.c.orig 2018-03-15 11:17:21.462824000 +0100 ++++ gdb/mn10300-linux-tdep.c 2018-03-15 11:20:05.266582000 +0100 +@@ -476,13 +476,13 @@ + 1, + { + /* mov 119,d0 */ +- { 0x2c, -1 }, +- { 0x77, -1 }, +- { 0x00, -1 }, ++ { 0x2c, static_cast(-1) }, ++ { 0x77, static_cast(-1) }, ++ { 0x00, static_cast(-1) }, + /* syscall 0 */ +- { 0xf0, -1 }, +- { 0xe0, -1 }, +- { TRAMP_SENTINEL_INSN, -1 } ++ { 0xf0, static_cast(-1) }, ++ { 0xe0, static_cast(-1) }, ++ { TRAMP_SENTINEL_INSN, static_cast(-1) } + }, + am33_linux_sigframe_cache_init + }; +@@ -492,13 +492,13 @@ + 1, + { + /* mov 173,d0 */ +- { 0x2c, -1 }, +- { 0xad, -1 }, +- { 0x00, -1 }, ++ { 0x2c, static_cast(-1) }, ++ { 0xad, static_cast(-1) }, ++ { 0x00, static_cast(-1) }, + /* syscall 0 */ +- { 0xf0, -1 }, +- { 0xe0, -1 }, +- { TRAMP_SENTINEL_INSN, -1 } ++ { 0xf0, static_cast(-1) }, ++ { 0xe0, static_cast(-1) }, ++ { TRAMP_SENTINEL_INSN, static_cast(-1) } + }, + am33_linux_sigframe_cache_init + }; Property changes on: head/devel/gdb/files/patch-gdb_mn10300-linux-tdep.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/devel/gdb/files/patch-gdb_nios2-linux-tdep.c =================================================================== --- head/devel/gdb/files/patch-gdb_nios2-linux-tdep.c (nonexistent) +++ head/devel/gdb/files/patch-gdb_nios2-linux-tdep.c (revision 464688) @@ -0,0 +1,24 @@ +--- gdb/nios2-linux-tdep.c.orig 2018-03-15 11:23:52.815692000 +0100 ++++ gdb/nios2-linux-tdep.c 2018-03-15 11:55:44.876122000 +0100 +@@ -164,8 +164,8 @@ + SIGTRAMP_FRAME, + 4, + { +- { MATCH_R1_MOVI | SET_IW_I_B (2) | SET_IW_I_IMM16 (139), -1 }, +- { MATCH_R1_TRAP | SET_IW_R_IMM5 (0), -1}, ++ { MATCH_R1_MOVI | SET_IW_I_B (2) | SET_IW_I_IMM16 (139), static_cast(-1) }, ++ { MATCH_R1_TRAP | SET_IW_R_IMM5 (0), static_cast(-1)}, + { TRAMP_SENTINEL_INSN } + }, + nios2_linux_rt_sigreturn_init +@@ -176,8 +176,8 @@ + SIGTRAMP_FRAME, + 4, + { +- { MATCH_R2_MOVI | SET_IW_F2I16_B (2) | SET_IW_F2I16_IMM16 (139), -1 }, +- { MATCH_R2_TRAP | SET_IW_X2L5_IMM5 (0), -1}, ++ { MATCH_R2_MOVI | SET_IW_F2I16_B (2) | SET_IW_F2I16_IMM16 (139), static_cast(-1) }, ++ { MATCH_R2_TRAP | SET_IW_X2L5_IMM5 (0), static_cast(-1)}, + { TRAMP_SENTINEL_INSN } + }, + nios2_linux_rt_sigreturn_init Property changes on: head/devel/gdb/files/patch-gdb_nios2-linux-tdep.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/devel/gdb/files/patch-gdb_ppc-linux-tdep.c =================================================================== --- head/devel/gdb/files/patch-gdb_ppc-linux-tdep.c (nonexistent) +++ head/devel/gdb/files/patch-gdb_ppc-linux-tdep.c (revision 464688) @@ -0,0 +1,50 @@ +--- gdb/ppc-linux-tdep.c.orig 2018-03-15 11:56:24.120083000 +0100 ++++ gdb/ppc-linux-tdep.c 2018-03-15 11:57:57.568381000 +0100 +@@ -663,8 +663,8 @@ + SIGTRAMP_FRAME, + 4, + { +- { 0x380000ac, -1 }, /* li r0, 172 */ +- { 0x44000002, -1 }, /* sc */ ++ { 0x380000ac, static_cast(-1) }, /* li r0, 172 */ ++ { 0x44000002, static_cast(-1) }, /* sc */ + { TRAMP_SENTINEL_INSN }, + }, + ppc32_linux_sigaction_cache_init +@@ -673,9 +673,9 @@ + SIGTRAMP_FRAME, + 4, + { +- { 0x38210080, -1 }, /* addi r1,r1,128 */ +- { 0x380000ac, -1 }, /* li r0, 172 */ +- { 0x44000002, -1 }, /* sc */ ++ { 0x38210080, static_cast(-1) }, /* addi r1,r1,128 */ ++ { 0x380000ac, static_cast(-1) }, /* li r0, 172 */ ++ { 0x44000002, static_cast(-1) }, /* sc */ + { TRAMP_SENTINEL_INSN }, + }, + ppc64_linux_sigaction_cache_init +@@ -684,8 +684,8 @@ + SIGTRAMP_FRAME, + 4, + { +- { 0x38000077, -1 }, /* li r0,119 */ +- { 0x44000002, -1 }, /* sc */ ++ { 0x38000077, static_cast(-1) }, /* li r0,119 */ ++ { 0x44000002, static_cast(-1) }, /* sc */ + { TRAMP_SENTINEL_INSN }, + }, + ppc32_linux_sighandler_cache_init +@@ -694,9 +694,9 @@ + SIGTRAMP_FRAME, + 4, + { +- { 0x38210080, -1 }, /* addi r1,r1,128 */ +- { 0x38000077, -1 }, /* li r0,119 */ +- { 0x44000002, -1 }, /* sc */ ++ { 0x38210080, static_cast(-1) }, /* addi r1,r1,128 */ ++ { 0x38000077, static_cast(-1) }, /* li r0,119 */ ++ { 0x44000002, static_cast(-1) }, /* sc */ + { TRAMP_SENTINEL_INSN }, + }, + ppc64_linux_sighandler_cache_init Property changes on: head/devel/gdb/files/patch-gdb_ppc-linux-tdep.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/devel/gdb/files/patch-gdb_ppc-nbsd-tdep.c =================================================================== --- head/devel/gdb/files/patch-gdb_ppc-nbsd-tdep.c (nonexistent) +++ head/devel/gdb/files/patch-gdb_ppc-nbsd-tdep.c (revision 464688) @@ -0,0 +1,48 @@ +--- gdb/ppc-nbsd-tdep.c.orig 2018-03-15 13:48:32.041494000 +0100 ++++ gdb/ppc-nbsd-tdep.c 2018-03-15 13:50:31.332926000 +0100 +@@ -137,14 +137,14 @@ + SIGTRAMP_FRAME, + 4, + { +- { 0x3821fff0, -1 }, /* add r1,r1,-16 */ +- { 0x4e800021, -1 }, /* blrl */ +- { 0x38610018, -1 }, /* addi r3,r1,24 */ +- { 0x38000127, -1 }, /* li r0,295 */ +- { 0x44000002, -1 }, /* sc */ +- { 0x38000001, -1 }, /* li r0,1 */ +- { 0x44000002, -1 }, /* sc */ +- { TRAMP_SENTINEL_INSN, -1 } ++ { 0x3821fff0, static_cast(-1) }, /* add r1,r1,-16 */ ++ { 0x4e800021, static_cast(-1) }, /* blrl */ ++ { 0x38610018, static_cast(-1) }, /* addi r3,r1,24 */ ++ { 0x38000127, static_cast(-1) }, /* li r0,295 */ ++ { 0x44000002, static_cast(-1) }, /* sc */ ++ { 0x38000001, static_cast(-1) }, /* li r0,1 */ ++ { 0x44000002, static_cast(-1) }, /* sc */ ++ { TRAMP_SENTINEL_INSN, static_cast(-1) } + }, + ppcnbsd_sigtramp_cache_init + }; +@@ -156,14 +156,14 @@ + SIGTRAMP_FRAME, + 4, + { +- { 0x3821fff0, -1 }, /* add r1,r1,-16 */ +- { 0x4e800021, -1 }, /* blrl */ +- { 0x38610010, -1 }, /* addi r3,r1,16 */ +- { 0x38000127, -1 }, /* li r0,295 */ +- { 0x44000002, -1 }, /* sc */ +- { 0x38000001, -1 }, /* li r0,1 */ +- { 0x44000002, -1 }, /* sc */ +- { TRAMP_SENTINEL_INSN, -1 } ++ { 0x3821fff0, static_cast(-1) }, /* add r1,r1,-16 */ ++ { 0x4e800021, static_cast(-1) }, /* blrl */ ++ { 0x38610010, static_cast(-1) }, /* addi r3,r1,16 */ ++ { 0x38000127, static_cast(-1) }, /* li r0,295 */ ++ { 0x44000002, static_cast(-1) }, /* sc */ ++ { 0x38000001, static_cast(-1) }, /* li r0,1 */ ++ { 0x44000002, static_cast(-1) }, /* sc */ ++ { TRAMP_SENTINEL_INSN, static_cast(-1) } + }, + ppcnbsd_sigtramp_cache_init + }; Property changes on: head/devel/gdb/files/patch-gdb_ppc-nbsd-tdep.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/devel/gdb/files/patch-gdb_ppc64-tdep.c =================================================================== --- head/devel/gdb/files/patch-gdb_ppc64-tdep.c (nonexistent) +++ head/devel/gdb/files/patch-gdb_ppc64-tdep.c (revision 464688) @@ -0,0 +1,252 @@ +--- gdb/ppc64-tdep.c.orig 2018-03-15 16:02:11.651610000 +0100 ++++ gdb/ppc64-tdep.c 2018-03-15 16:10:27.958608000 +0100 +@@ -30,24 +30,27 @@ + you can use -1 to make masks. */ + + #define insn_d(opcd, rts, ra, d) \ ++ static_cast( \ + ((((opcd) & 0x3f) << 26) \ + | (((rts) & 0x1f) << 21) \ + | (((ra) & 0x1f) << 16) \ +- | ((d) & 0xffff)) ++ | ((d) & 0xffff))) + + #define insn_ds(opcd, rts, ra, d, xo) \ ++ static_cast( \ + ((((opcd) & 0x3f) << 26) \ + | (((rts) & 0x1f) << 21) \ + | (((ra) & 0x1f) << 16) \ + | ((d) & 0xfffc) \ +- | ((xo) & 0x3)) ++ | ((xo) & 0x3))) + + #define insn_xfx(opcd, rts, spr, xo) \ ++ static_cast( \ + ((((opcd) & 0x3f) << 26) \ + | (((rts) & 0x1f) << 21) \ + | (((spr) & 0x1f) << 16) \ + | (((spr) & 0x3e0) << 6) \ +- | (((xo) & 0x3ff) << 1)) ++ | (((xo) & 0x3ff) << 1))) + + /* PLT_OFF is the TOC-relative offset of a 64-bit PowerPC PLT entry. + Return the function's entry point. */ +@@ -86,7 +89,7 @@ + { insn_d (-1, -1, -1, 0), insn_d (15, 12, 2, 0), 0 }, + + /* std r2, 40(r1) */ +- { -1, insn_ds (62, 2, 1, 40, 0), 0 }, ++ { static_cast(-1), insn_ds (62, 2, 1, 40, 0), 0 }, + + /* ld r11, (r12) */ + { insn_ds (-1, -1, -1, 0, -1), insn_ds (58, 11, 12, 0, 0), 0 }, +@@ -107,7 +110,7 @@ + { insn_ds (-1, -1, -1, 0, -1), insn_ds (58, 11, 12, 0, 0), 1 }, + + /* bctr */ +- { -1, 0x4e800420, 0 }, ++ { static_cast(-1), 0x4e800420, 0 }, + + { 0, 0, 0 } + }; +@@ -122,13 +125,13 @@ + static struct ppc_insn_pattern ppc64_standard_linkage2[] = + { + /* std r2, 40(r1) */ +- { -1, insn_ds (62, 2, 1, 40, 0), 1 }, ++ { static_cast(-1), insn_ds (62, 2, 1, 40, 0), 1 }, + + /* addis r12, r2, */ + { insn_d (-1, -1, -1, 0), insn_d (15, 12, 2, 0), 0 }, + + /* std r2, 40(r1) */ +- { -1, insn_ds (62, 2, 1, 40, 0), 1 }, ++ { static_cast(-1), insn_ds (62, 2, 1, 40, 0), 1 }, + + /* ld r11, (r12) */ + { insn_ds (-1, -1, -1, 0, -1), insn_ds (58, 11, 12, 0, 0), 0 }, +@@ -140,10 +143,10 @@ + { insn_xfx (-1, -1, -1, -1), insn_xfx (31, 11, 9, 467), 0 }, + + /* xor r11, r11, r11 */ +- { -1, 0x7d6b5a78, 1 }, ++ { static_cast(-1), 0x7d6b5a78, 1 }, + + /* add r12, r12, r11 */ +- { -1, 0x7d8c5a14, 1 }, ++ { static_cast(-1), 0x7d8c5a14, 1 }, + + /* ld r2, (r12) */ + { insn_ds (-1, -1, -1, 0, -1), insn_ds (58, 2, 12, 0, 0), 0 }, +@@ -152,10 +155,10 @@ + { insn_ds (-1, -1, -1, 0, -1), insn_ds (58, 11, 12, 0, 0), 1 }, + + /* bctr */ +- { -1, 0x4e800420, 1 }, ++ { static_cast(-1), 0x4e800420, 1 }, + + /* cmpldi r2, 0 */ +- { -1, 0x28220000, 1 }, ++ { static_cast(-1), 0x28220000, 1 }, + + { 0, 0, 0 } + }; +@@ -165,7 +168,7 @@ + static struct ppc_insn_pattern ppc64_standard_linkage3[] = + { + /* std r2, 40(r1) */ +- { -1, insn_ds (62, 2, 1, 40, 0), 1 }, ++ { static_cast(-1), insn_ds (62, 2, 1, 40, 0), 1 }, + + /* ld r11, (r2) */ + { insn_ds (-1, -1, -1, 0, -1), insn_ds (58, 11, 2, 0, 0), 0 }, +@@ -177,10 +180,10 @@ + { insn_xfx (-1, -1, -1, -1), insn_xfx (31, 11, 9, 467), 0 }, + + /* xor r11, r11, r11 */ +- { -1, 0x7d6b5a78, 1 }, ++ { static_cast(-1), 0x7d6b5a78, 1 }, + + /* add r2, r2, r11 */ +- { -1, 0x7c425a14, 1 }, ++ { static_cast(-1), 0x7c425a14, 1 }, + + /* ld r11, (r2) */ + { insn_ds (-1, -1, -1, 0, -1), insn_ds (58, 11, 2, 0, 0), 1 }, +@@ -189,10 +192,10 @@ + { insn_ds (-1, -1, -1, 0, -1), insn_ds (58, 2, 2, 0, 0), 0 }, + + /* bctr */ +- { -1, 0x4e800420, 1 }, ++ { static_cast(-1), 0x4e800420, 1 }, + + /* cmpldi r2, 0 */ +- { -1, 0x28220000, 1 }, ++ { static_cast(-1), 0x28220000, 1 }, + + { 0, 0, 0 } + }; +@@ -204,7 +207,7 @@ + static struct ppc_insn_pattern ppc64_standard_linkage4[] = + { + /* std r2, 40(r1) */ +- { -1, insn_ds (62, 2, 1, 40, 0), 1 }, ++ { static_cast(-1), insn_ds (62, 2, 1, 40, 0), 1 }, + + /* addis r11, r2, */ + { insn_d (-1, -1, -1, 0), insn_d (15, 11, 2, 0), 0 }, +@@ -219,10 +222,10 @@ + { insn_xfx (-1, -1, -1, -1), insn_xfx (31, 12, 9, 467), 0 }, + + /* xor r2, r12, r12 */ +- { -1, 0x7d826278, 1 }, ++ { static_cast(-1), 0x7d826278, 1 }, + + /* add r11, r11, r2 */ +- { -1, 0x7d6b1214, 1 }, ++ { static_cast(-1), 0x7d6b1214, 1 }, + + /* ld r2, (r11) */ + { insn_ds (-1, -1, -1, 0, -1), insn_ds (58, 2, 11, 0, 0), 0 }, +@@ -231,10 +234,10 @@ + { insn_ds (-1, -1, -1, 0, -1), insn_ds (58, 11, 11, 0, 0), 1 }, + + /* bctr */ +- { -1, 0x4e800420, 1 }, ++ { static_cast(-1), 0x4e800420, 1 }, + + /* cmpldi r2, 0 */ +- { -1, 0x28220000, 1 }, ++ { static_cast(-1), 0x28220000, 1 }, + + { 0, 0, 0 } + }; +@@ -246,7 +249,7 @@ + static struct ppc_insn_pattern ppc64_standard_linkage5[] = + { + /* std r2, 40(r1) */ +- { -1, insn_ds (62, 2, 1, 40, 0), 1 }, ++ { static_cast(-1), insn_ds (62, 2, 1, 40, 0), 1 }, + + /* ld r12, (r2) */ + { insn_ds (-1, -1, -1, 0, -1), insn_ds (58, 12, 2, 0, 0), 0 }, +@@ -258,10 +261,10 @@ + { insn_xfx (-1, -1, -1, -1), insn_xfx (31, 12, 9, 467), 0 }, + + /* xor r11, r12, r12 */ +- { -1, 0x7d8b6278, 1 }, ++ { static_cast(-1), 0x7d8b6278, 1 }, + + /* add r2, r2, r11 */ +- { -1, 0x7c425a14, 1 }, ++ { static_cast(-1), 0x7c425a14, 1 }, + + /* ld r11, (r2) */ + { insn_ds (-1, -1, -1, 0, -1), insn_ds (58, 11, 2, 0, 0), 1 }, +@@ -270,10 +273,10 @@ + { insn_ds (-1, -1, -1, 0, -1), insn_ds (58, 2, 2, 0, 0), 0 }, + + /* bctr */ +- { -1, 0x4e800420, 1 }, ++ { static_cast(-1), 0x4e800420, 1 }, + + /* cmpldi r2, 0 */ +- { -1, 0x28220000, 1 }, ++ { static_cast(-1), 0x28220000, 1 }, + + { 0, 0, 0 } + }; +@@ -283,7 +286,7 @@ + static struct ppc_insn_pattern ppc64_standard_linkage6[] = + { + /* std r2, 24(r1) */ +- { -1, insn_ds (62, 2, 1, 24, 0), 1 }, ++ { static_cast(-1), insn_ds (62, 2, 1, 24, 0), 1 }, + + /* addis r11, r2, */ + { insn_d (-1, -1, -1, 0), insn_d (15, 11, 2, 0), 0 }, +@@ -295,7 +298,7 @@ + { insn_xfx (-1, -1, -1, -1), insn_xfx (31, 12, 9, 467), 0 }, + + /* bctr */ +- { -1, 0x4e800420, 0 }, ++ { static_cast(-1), 0x4e800420, 0 }, + + { 0, 0, 0 } + }; +@@ -305,7 +308,7 @@ + static struct ppc_insn_pattern ppc64_standard_linkage7[] = + { + /* std r2, 24(r1) */ +- { -1, insn_ds (62, 2, 1, 24, 0), 1 }, ++ { static_cast(-1), insn_ds (62, 2, 1, 24, 0), 1 }, + + /* ld r12, (r2) */ + { insn_ds (-1, -1, -1, 0, -1), insn_ds (58, 12, 2, 0, 0), 0 }, +@@ -314,7 +317,7 @@ + { insn_xfx (-1, -1, -1, -1), insn_xfx (31, 12, 9, 467), 0 }, + + /* bctr */ +- { -1, 0x4e800420, 0 }, ++ { static_cast(-1), 0x4e800420, 0 }, + + { 0, 0, 0 } + }; +@@ -325,7 +328,7 @@ + static struct ppc_insn_pattern ppc64_standard_linkage8[] = + { + /* std r2, 24(r1) */ +- { -1, insn_ds (62, 2, 1, 24, 0), 1 }, ++ { static_cast(-1), insn_ds (62, 2, 1, 24, 0), 1 }, + + /* addis r12, r2, */ + { insn_d (-1, -1, -1, 0), insn_d (15, 12, 2, 0), 0 }, +@@ -337,7 +340,7 @@ + { insn_xfx (-1, -1, -1, -1), insn_xfx (31, 12, 9, 467), 0 }, + + /* bctr */ +- { -1, 0x4e800420, 0 }, ++ { static_cast(-1), 0x4e800420, 0 }, + + { 0, 0, 0 } + }; Property changes on: head/devel/gdb/files/patch-gdb_ppc64-tdep.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/devel/gdb/files/patch-gdb_rs6000-tdep.c =================================================================== --- head/devel/gdb/files/patch-gdb_rs6000-tdep.c (nonexistent) +++ head/devel/gdb/files/patch-gdb_rs6000-tdep.c (revision 464688) @@ -0,0 +1,11 @@ +--- gdb/rs6000-tdep.c.orig 2018-03-15 16:11:47.189448000 +0100 ++++ gdb/rs6000-tdep.c 2018-03-15 16:12:36.114973000 +0100 +@@ -1173,7 +1173,7 @@ + struct gdbarch *gdbarch = regcache->arch (); + enum bfd_endian byte_order = gdbarch_byte_order (gdbarch); + CORE_ADDR pc = regcache_read_pc (regcache); +- CORE_ADDR breaks[2] = {-1, -1}; ++ CORE_ADDR breaks[2] = {static_cast(-1),static_cast(-1)}; + CORE_ADDR loc = pc; + CORE_ADDR closing_insn; /* Instruction that closes the atomic sequence. */ + int insn = read_memory_integer (loc, PPC_INSN_SIZE, byte_order); Property changes on: head/devel/gdb/files/patch-gdb_rs6000-tdep.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/devel/gdb/files/patch-gdb_sparc-linux-tdep.c =================================================================== --- head/devel/gdb/files/patch-gdb_sparc-linux-tdep.c (nonexistent) +++ head/devel/gdb/files/patch-gdb_sparc-linux-tdep.c (revision 464688) @@ -0,0 +1,28 @@ +--- gdb/sparc-linux-tdep.c.orig 2018-03-15 16:27:40.393176000 +0100 ++++ gdb/sparc-linux-tdep.c 2018-03-15 16:29:00.339581000 +0100 +@@ -68,9 +68,9 @@ + SIGTRAMP_FRAME, + 4, + { +- { 0x821020d8, -1 }, /* mov __NR_sugreturn, %g1 */ +- { 0x91d02010, -1 }, /* ta 0x10 */ +- { TRAMP_SENTINEL_INSN, -1 } ++ { 0x821020d8, static_cast(-1) }, /* mov __NR_sugreturn, %g1 */ ++ { 0x91d02010, static_cast(-1) }, /* ta 0x10 */ ++ { TRAMP_SENTINEL_INSN, static_cast(-1) } + }, + sparc32_linux_sigframe_init + }; +@@ -83,9 +83,9 @@ + SIGTRAMP_FRAME, + 4, + { +- { 0x82102065, -1 }, /* mov __NR_rt_sigreturn, %g1 */ +- { 0x91d02010, -1 }, /* ta 0x10 */ +- { TRAMP_SENTINEL_INSN, -1 } ++ { 0x82102065, static_cast(-1) }, /* mov __NR_rt_sigreturn, %g1 */ ++ { 0x91d02010, static_cast(-1) }, /* ta 0x10 */ ++ { TRAMP_SENTINEL_INSN, static_cast(-1) } + }, + sparc32_linux_sigframe_init + }; Property changes on: head/devel/gdb/files/patch-gdb_sparc-linux-tdep.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/devel/gdb/files/patch-gdb_sparc64-linux-tdep.c =================================================================== --- head/devel/gdb/files/patch-gdb_sparc64-linux-tdep.c (nonexistent) +++ head/devel/gdb/files/patch-gdb_sparc64-linux-tdep.c (revision 464688) @@ -0,0 +1,15 @@ +--- gdb/sparc64-linux-tdep.c.orig 2018-03-15 16:48:31.376247000 +0100 ++++ gdb/sparc64-linux-tdep.c 2018-03-15 16:49:05.405119000 +0100 +@@ -64,9 +64,9 @@ + SIGTRAMP_FRAME, + 4, + { +- { 0x82102065, -1 }, /* mov __NR_rt_sigreturn, %g1 */ +- { 0x91d0206d, -1 }, /* ta 0x6d */ +- { TRAMP_SENTINEL_INSN, -1 } ++ { 0x82102065, static_cast(-1) }, /* mov __NR_rt_sigreturn, %g1 */ ++ { 0x91d0206d, static_cast(-1) }, /* ta 0x6d */ ++ { TRAMP_SENTINEL_INSN, static_cast(-1) } + }, + sparc64_linux_sigframe_init + }; Property changes on: head/devel/gdb/files/patch-gdb_sparc64-linux-tdep.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/devel/gdb/files/patch-gdb_tick6x-linux-tdep.c =================================================================== --- head/devel/gdb/files/patch-gdb_tick6x-linux-tdep.c (nonexistent) +++ head/devel/gdb/files/patch-gdb_tick6x-linux-tdep.c (revision 464688) @@ -0,0 +1,11 @@ +--- gdb/tic6x-linux-tdep.c.orig 2018-03-15 16:29:54.131451000 +0100 ++++ gdb/tic6x-linux-tdep.c 2018-03-15 16:30:19.640674000 +0100 +@@ -137,7 +137,7 @@ + 4, + { + {0x000045aa, 0x0fffffff}, /* mvk .S2 139,b0 */ +- {0x10000000, -1}, /* swe */ ++ {0x10000000, static_cast(-1)}, /* swe */ + {TRAMP_SENTINEL_INSN} + }, + tic6x_linux_rt_sigreturn_init Property changes on: head/devel/gdb/files/patch-gdb_tick6x-linux-tdep.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/devel/gdb/files/patch-gdb_tilegx-linux-tdep.c =================================================================== --- head/devel/gdb/files/patch-gdb_tilegx-linux-tdep.c (nonexistent) +++ head/devel/gdb/files/patch-gdb_tilegx-linux-tdep.c (revision 464688) @@ -0,0 +1,15 @@ +--- gdb/tilegx-linux-tdep.c.orig 2018-03-15 16:31:44.623131000 +0100 ++++ gdb/tilegx-linux-tdep.c 2018-03-15 16:32:29.603585000 +0100 +@@ -65,9 +65,9 @@ + SIGTRAMP_FRAME, + 8, + { +- { 0x00045fe551483000ULL, -1 }, /* { moveli r10, 139 } */ +- { 0x286b180051485000ULL, -1 }, /* { swint1 } */ +- { TRAMP_SENTINEL_INSN, -1 } ++ { 0x00045fe551483000ULL, static_cast(-1) }, /* { moveli r10, 139 } */ ++ { 0x286b180051485000ULL, static_cast(-1) }, /* { swint1 } */ ++ { TRAMP_SENTINEL_INSN, static_cast(-1) } + }, + tilegx_linux_sigframe_init + }; Property changes on: head/devel/gdb/files/patch-gdb_tilegx-linux-tdep.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/devel/gdb/files/patch-gdb_tramp-frame.h =================================================================== --- head/devel/gdb/files/patch-gdb_tramp-frame.h (nonexistent) +++ head/devel/gdb/files/patch-gdb_tramp-frame.h (revision 464688) @@ -0,0 +1,11 @@ +--- gdb/tramp-frame.h.orig 2018-03-15 10:38:21.385046000 +0100 ++++ gdb/tramp-frame.h 2018-03-15 10:38:49.942224000 +0100 +@@ -41,7 +41,7 @@ + + /* Magic instruction that to mark the end of the signal trampoline + instruction sequence. */ +-#define TRAMP_SENTINEL_INSN ((LONGEST) -1) ++#define TRAMP_SENTINEL_INSN ((ULONGEST) -1) + + struct tramp_frame + { Property changes on: head/devel/gdb/files/patch-gdb_tramp-frame.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/devel/gdb/files/patch-gdb_xtensa-tdep.h =================================================================== --- head/devel/gdb/files/patch-gdb_xtensa-tdep.h (nonexistent) +++ head/devel/gdb/files/patch-gdb_xtensa-tdep.h (revision 464688) @@ -0,0 +1,20 @@ +--- gdb/xtensa-tdep.h.orig 2018-03-15 16:33:53.194056000 +0100 ++++ gdb/xtensa-tdep.h 2018-03-15 16:37:44.151472000 +0100 +@@ -130,7 +130,7 @@ + ct, bsz, sz, al, tnum, flg, cp, mas, fet, sto}, + #define XTREG_END \ + {0, 0, (xtensa_register_type_t) 0, (xtensa_register_group_t) 0, \ +- 0, 0, 0, 0, -1, 0, 0, 0, 0, 0}, ++ 0, 0, 0, 0, static_cast(-1), 0, 0, 0, 0, 0}, + + #define XTENSA_REGISTER_FLAGS_PRIVILEGED 0x0001 + #define XTENSA_REGISTER_FLAGS_READABLE 0x0002 +@@ -228,7 +228,7 @@ + #define XTENSA_GDBARCH_TDEP_INSTANTIATE(rmap,spillsz) \ + { \ + 0, /* target_flags */ \ +- -1, /* spill_location */ \ ++ static_cast(-1), /* spill_location */ \ + (spillsz), /* spill_size */ \ + 0, /* unused */ \ + (XSHAL_ABI == XTHAL_ABI_CALL0 \ Property changes on: head/devel/gdb/files/patch-gdb_xtensa-tdep.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property