aboutsummaryrefslogtreecommitdiff
path: root/devel/gdb
diff options
context:
space:
mode:
authorTijl Coosemans <tijl@FreeBSD.org>2014-06-10 11:39:29 +0000
committerTijl Coosemans <tijl@FreeBSD.org>2014-06-10 11:39:29 +0000
commitee9844c8f2818e8f0e08143f962cf9fd5f6d380b (patch)
treec5367eae06e0e1a59075ffd9fdc614eb3e1d5bd0 /devel/gdb
parent10a0f4fc2d3b8f4ccddc9406ee800c48cf4f3792 (diff)
Notes
Diffstat (limited to 'devel/gdb')
-rw-r--r--devel/gdb/Makefile13
-rw-r--r--devel/gdb/distinfo4
-rw-r--r--devel/gdb/files/extrapatch-gdb-Makefile.in11
-rw-r--r--devel/gdb/files/fbsd-threads.c14
-rw-r--r--devel/gdb/files/patch-bfd-coffcode.h11
-rw-r--r--devel/gdb/files/patch-bfd-ecoff.c11
-rw-r--r--devel/gdb/files/patch-bfd-elf32-hppa.c11
-rw-r--r--devel/gdb/files/patch-bfd-elf32-m32r.c11
-rw-r--r--devel/gdb/files/patch-bfd-elf32-nds32.c20
-rw-r--r--devel/gdb/files/patch-bfd-elf32-tic6x.c30
-rw-r--r--devel/gdb/files/patch-bfd-elf32-v850.c11
-rw-r--r--devel/gdb/files/patch-bfd-elf64-alpha.c6
-rw-r--r--devel/gdb/files/patch-bfd-elfnn-ia64.c11
-rw-r--r--devel/gdb/files/patch-bfd-elfxx-mips.c28
-rw-r--r--devel/gdb/files/patch-bfd-elfxx-tilegx.c20
-rw-r--r--devel/gdb/files/patch-bfd-mach-o.c11
-rw-r--r--devel/gdb/files/patch-bfd-mmo.c29
-rw-r--r--devel/gdb/files/patch-bfd-opncls.c11
-rw-r--r--devel/gdb/files/patch-bfd-peicode.h11
-rw-r--r--devel/gdb/files/patch-bfd-vms-alpha.c20
-rw-r--r--devel/gdb/files/patch-bfd-xcofflink.c11
-rw-r--r--devel/gdb/files/patch-gdb-amd64bsd-nat.c6
-rw-r--r--devel/gdb/files/patch-gdb-gdb_wchar.h20
-rw-r--r--devel/gdb/files/patch-include-cgen-basic-ops.h43
-rw-r--r--devel/gdb/files/patch-opcodes-i386-dis.c59
-rw-r--r--devel/gdb/files/patch-opcodes-ia64-asmtab.c37
-rw-r--r--devel/gdb/files/patch-opcodes-rl78-dis.c11
-rw-r--r--devel/gdb/files/patch-opcodes-v850-dis.c20
-rw-r--r--devel/gdb/pkg-plist9
29 files changed, 68 insertions, 442 deletions
diff --git a/devel/gdb/Makefile b/devel/gdb/Makefile
index c7b63673fc70..35182e355e56 100644
--- a/devel/gdb/Makefile
+++ b/devel/gdb/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= gdb
-PORTVERSION= 7.6.2
+PORTVERSION= 7.7.1
CATEGORIES= devel
MASTER_SITES= GNU
@@ -11,17 +11,16 @@ COMMENT= GNU GDB of newer version than comes with the system
LICENSE= GPLv3
-USE_BZIP2= yes
-USES= iconv gmake
+USES= iconv gmake libtool tar:bzip2
USE_CSTD= gnu89
GNU_CONFIGURE= yes
CONFIGURE_ENV= CONFIGURED_M4=m4 CONFIGURED_BISON=byacc
CONFIGURE_ARGS= --program-suffix=${PORTVERSION:S/.//g} \
+ --enable-targets=all \
--with-gdb-datadir=${PREFIX}/share/gdb${PORTVERSION:S/.//g} \
--with-separate-debug-dir=/usr/lib/debug \
${ICONV_CONFIGURE_ARG} \
- --without-libunwind-ia64 \
- --enable-targets=all
+ --without-libunwind-ia64
CFLAGS:= ${CFLAGS:C/ +$//} # blanks at EOL creep in sometimes
CFLAGS+= -DRL_NO_COMPAT -Wno-unused-function -Wno-unused-variable
EXCLUDE= dejagnu expect sim texinfo intl
@@ -56,8 +55,8 @@ EXPAT_CONFIGURE_OFF= --without-expat
EXPAT_LIB_DEPENDS= libexpat.so:${PORTSDIR}/textproc/expat2
PYTHON_CONFIGURE_ON= --with-python=${PYTHON_CMD}
PYTHON_CONFIGURE_OFF= --without-python
-PORT_READLINE_USES= readline:port
PORT_READLINE_EXTRA_PATCHES= ${FILESDIR}/extrapatch-gdb-tui-tui-io.c
+PORT_READLINE_USES= readline:port
TUI_CONFIGURE_ENABLE= tui
.include <bsd.port.options.mk>
@@ -90,7 +89,7 @@ post-patch:
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/gdb/gdb \
${STAGEDIR}${PREFIX}/bin/gdb${VER}
- ${INSTALL_MAN} ${WRKSRC}/gdb/gdb.1 \
+ ${INSTALL_MAN} ${WRKSRC}/gdb/doc/gdb.1 \
${STAGEDIR}${MAN1PREFIX}/man/man1/gdb${VER}.1
.if ${PORT_OPTIONS:MTUI}
diff --git a/devel/gdb/distinfo b/devel/gdb/distinfo
index b59f757704c2..4598038194c1 100644
--- a/devel/gdb/distinfo
+++ b/devel/gdb/distinfo
@@ -1,2 +1,2 @@
-SHA256 (gdb-7.6.2.tar.bz2) = 2f6a0e2ce1c66c9dedeb7f58a8d1298ad602ddcdaf15d23104e1f7832b96d0e8
-SIZE (gdb-7.6.2.tar.bz2) = 24269334
+SHA256 (gdb-7.7.1.tar.bz2) = 0dbd5260406f1b0c70fcf027c6488527fadde0cd9bb574593491fe076eb03aa5
+SIZE (gdb-7.7.1.tar.bz2) = 24849503
diff --git a/devel/gdb/files/extrapatch-gdb-Makefile.in b/devel/gdb/files/extrapatch-gdb-Makefile.in
index a441bddbe1ad..f31f0ab397b3 100644
--- a/devel/gdb/files/extrapatch-gdb-Makefile.in
+++ b/devel/gdb/files/extrapatch-gdb-Makefile.in
@@ -1,16 +1,5 @@
--- gdb/Makefile.in.orig 2013-04-02 19:38:43.000000000 +0200
+++ gdb/Makefile.in 2013-05-18 13:08:47.000000000 +0200
-@@ -566,8 +566,8 @@
- moxie-tdep.o \
- mt-tdep.o \
- nto-tdep.o \
-- ppc-linux-tdep.o ppcnbsd-tdep.o ppcobsd-tdep.o ppc-sysv-tdep.o \
-- ppc64-tdep.o rl78-tdep.o \
-+ ppc-linux-tdep.o ppcfbsd-tdep.o ppcnbsd-tdep.o ppcobsd-tdep.o \
-+ ppc-sysv-tdep.o ppc64-tdep.o rl78-tdep.o \
- rs6000-aix-tdep.o rs6000-tdep.o ppc-ravenscar-thread.o \
- rs6000-lynx178-tdep.o \
- rx-tdep.o \
@@ -585,6 +585,7 @@
xtensa-config.o xtensa-tdep.o xtensa-linux-tdep.o \
glibc-tdep.o \
diff --git a/devel/gdb/files/fbsd-threads.c b/devel/gdb/files/fbsd-threads.c
index ad54a8f2c838..711f1b63fee2 100644
--- a/devel/gdb/files/fbsd-threads.c
+++ b/devel/gdb/files/fbsd-threads.c
@@ -155,7 +155,7 @@ static void fbsd_thread_find_new_threads (struct target_ops *ops);
static int fbsd_thread_alive (struct target_ops *ops, ptid_t ptid);
static void attach_thread (ptid_t ptid, const td_thrhandle_t *th_p,
const td_thrinfo_t *ti_p, int verbose);
-static void fbsd_thread_detach (struct target_ops *ops, char *args,
+static void fbsd_thread_detach (struct target_ops *ops, const char *args,
int from_tty);
CORE_ADDR fbsd_thread_get_local_address(struct target_ops *ops,
@@ -315,7 +315,7 @@ get_current_lwp (int pid)
}
static void
-get_current_thread ()
+get_current_thread (void)
{
td_thrhandle_t th;
td_thrinfo_t ti;
@@ -523,7 +523,7 @@ fbsd_thread_new_objfile (struct objfile *objfile)
}
static void
-fbsd_thread_detach (struct target_ops *ops, char *args, int from_tty)
+fbsd_thread_detach (struct target_ops *ops, const char *args, int from_tty)
{
struct target_ops *beneath = find_target_beneath (ops);
@@ -1289,14 +1289,14 @@ fbsd_thread_get_local_address(struct target_ops *ops,
static int
tsd_cb (thread_key_t key, void (*destructor)(void *), void *ignore)
{
- struct minimal_symbol *ms;
+ struct bound_minimal_symbol bms;
const char *name;
- ms = lookup_minimal_symbol_by_pc (extract_func_ptr (&destructor));
- if (!ms)
+ bms = lookup_minimal_symbol_by_pc (extract_func_ptr (&destructor));
+ if (!bms.minsym)
name = "???";
else
- name = SYMBOL_PRINT_NAME (ms);
+ name = SYMBOL_PRINT_NAME (bms.minsym);
printf_filtered ("Key %d, destructor %p <%s>\n", key, destructor, name);
return 0;
diff --git a/devel/gdb/files/patch-bfd-coffcode.h b/devel/gdb/files/patch-bfd-coffcode.h
deleted file mode 100644
index 5a6fcf04de5a..000000000000
--- a/devel/gdb/files/patch-bfd-coffcode.h
+++ /dev/null
@@ -1,11 +0,0 @@
---- bfd/coffcode.h.orig 2012-12-18 14:22:56.000000000 +0100
-+++ bfd/coffcode.h 2012-12-18 14:23:11.000000000 +0100
-@@ -3442,7 +3442,7 @@
- incremented in coff_set_section_contents. This is right for
- SVR3.2. */
- if (strcmp (current->name, _LIB) == 0)
-- bfd_set_section_vma (abfd, current, 0);
-+ (void)bfd_set_section_vma (abfd, current, 0);
- #endif
-
- #ifdef ALIGN_SECTIONS_IN_FILE
diff --git a/devel/gdb/files/patch-bfd-ecoff.c b/devel/gdb/files/patch-bfd-ecoff.c
deleted file mode 100644
index de352728238d..000000000000
--- a/devel/gdb/files/patch-bfd-ecoff.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- bfd/ecoff.c.orig 2013-03-11 12:42:03.000000000 +0100
-+++ bfd/ecoff.c 2013-03-11 12:44:29.000000000 +0100
-@@ -1888,7 +1888,7 @@
- ret = (bfd_coff_filhsz (abfd)
- + bfd_coff_aoutsz (abfd)
- + c * bfd_coff_scnhsz (abfd));
-- return BFD_ALIGN (ret, 16);
-+ return (int)BFD_ALIGN (ret, 16);
- }
-
- /* Get the contents of a section. */
diff --git a/devel/gdb/files/patch-bfd-elf32-hppa.c b/devel/gdb/files/patch-bfd-elf32-hppa.c
deleted file mode 100644
index e593f911bb15..000000000000
--- a/devel/gdb/files/patch-bfd-elf32-hppa.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- bfd/elf32-hppa.c.orig 2013-03-07 09:56:40.000000000 +0100
-+++ bfd/elf32-hppa.c 2013-03-07 09:57:07.000000000 +0100
-@@ -2384,7 +2384,7 @@
- bfd_size_type mask;
-
- if (gotalign > pltalign)
-- bfd_set_section_alignment (dynobj, sec, gotalign);
-+ (void)bfd_set_section_alignment (dynobj, sec, gotalign);
- mask = ((bfd_size_type) 1 << gotalign) - 1;
- sec->size = (sec->size + sizeof (plt_stub) + mask) & ~mask;
- }
diff --git a/devel/gdb/files/patch-bfd-elf32-m32r.c b/devel/gdb/files/patch-bfd-elf32-m32r.c
deleted file mode 100644
index 94c6b63ff030..000000000000
--- a/devel/gdb/files/patch-bfd-elf32-m32r.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- bfd/elf32-m32r.c.orig 2013-03-07 09:57:30.000000000 +0100
-+++ bfd/elf32-m32r.c 2013-03-07 09:57:53.000000000 +0100
-@@ -1390,7 +1390,7 @@
- flags);
- if (s == NULL)
- return FALSE;
-- bfd_set_section_alignment (abfd, s, 2);
-+ (void)bfd_set_section_alignment (abfd, s, 2);
- }
-
- bh = bfd_link_hash_lookup (info->hash, "_SDA_BASE_",
diff --git a/devel/gdb/files/patch-bfd-elf32-nds32.c b/devel/gdb/files/patch-bfd-elf32-nds32.c
new file mode 100644
index 000000000000..4eca6cfcdb79
--- /dev/null
+++ b/devel/gdb/files/patch-bfd-elf32-nds32.c
@@ -0,0 +1,20 @@
+--- bfd/elf32-nds32.c.orig 2014-02-07 13:04:20.389741513 +0100
++++ bfd/elf32-nds32.c 2014-02-07 13:06:47.079732839 +0100
+@@ -6303,7 +6303,7 @@
+ int *pinsn_type)
+ {
+ uint16_t insn16 = 0;
+- int insn_type;
++ int insn_type = 0;
+ unsigned long mach = bfd_get_mach (abfd);
+
+ if (N32_SH5 (insn) != 0)
+@@ -6518,7 +6518,7 @@
+ {
+ int op6;
+ uint16_t insn16 = 0;
+- int insn_type;
++ int insn_type = 0;
+ unsigned long mach = bfd_get_mach (abfd);
+
+ /* Decode 32-bit instruction. */
diff --git a/devel/gdb/files/patch-bfd-elf32-tic6x.c b/devel/gdb/files/patch-bfd-elf32-tic6x.c
deleted file mode 100644
index 8ddab0c5d13f..000000000000
--- a/devel/gdb/files/patch-bfd-elf32-tic6x.c
+++ /dev/null
@@ -1,30 +0,0 @@
---- bfd/elf32-tic6x.c.orig 2013-03-07 10:03:28.000000000 +0100
-+++ bfd/elf32-tic6x.c 2013-03-07 10:08:19.000000000 +0100
-@@ -3043,7 +3043,7 @@
- *secp = bfd_make_section_old_way (abfd, ".scommon");
- (*secp)->flags |= SEC_IS_COMMON;
- *valp = sym->st_size;
-- bfd_set_section_alignment (abfd, *secp, bfd_log2 (sym->st_value));
-+ (void)bfd_set_section_alignment (abfd, *secp, bfd_log2 (sym->st_value));
- break;
- }
-
-@@ -3319,8 +3319,6 @@
- {
- bfd_signed_vma *local_got;
- bfd_signed_vma *end_local_got;
-- char *local_tls_type;
-- bfd_vma *local_tlsdesc_gotent;
- bfd_size_type locsymcount;
- Elf_Internal_Shdr *symtab_hdr;
- asection *srel;
-@@ -3361,8 +3359,7 @@
- end_local_got = local_got + locsymcount;
- s = htab->elf.sgot;
- srel = htab->elf.srelgot;
-- for (; local_got < end_local_got;
-- ++local_got, ++local_tls_type, ++local_tlsdesc_gotent)
-+ for (; local_got < end_local_got; ++local_got)
- {
- if (*local_got > 0)
- {
diff --git a/devel/gdb/files/patch-bfd-elf32-v850.c b/devel/gdb/files/patch-bfd-elf32-v850.c
deleted file mode 100644
index 8b6f41ad4e5f..000000000000
--- a/devel/gdb/files/patch-bfd-elf32-v850.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- bfd/elf32-v850.c.orig 2013-03-11 12:55:48.000000000 +0100
-+++ bfd/elf32-v850.c 2013-03-11 12:57:45.000000000 +0100
-@@ -2933,7 +2933,7 @@
-
- if (alignmoveto < alignto)
- {
-- unsigned int i;
-+ bfd_vma i;
-
- align_pad_size = alignto - alignmoveto;
- #ifdef DEBUG_RELAX
diff --git a/devel/gdb/files/patch-bfd-elf64-alpha.c b/devel/gdb/files/patch-bfd-elf64-alpha.c
index 7b678f5784a3..8ea0fd776a13 100644
--- a/devel/gdb/files/patch-bfd-elf64-alpha.c
+++ b/devel/gdb/files/patch-bfd-elf64-alpha.c
@@ -1,10 +1,10 @@
--- bfd/elf64-alpha.c.orig 2013-03-11 10:52:58.000000000 +0100
+++ bfd/elf64-alpha.c 2013-03-11 11:50:24.000000000 +0100
@@ -3585,9 +3585,9 @@
- use_gottprel = FALSE;
- new_symndx = is_gd ? ELF64_R_SYM (irel->r_info) : STN_UNDEF;
-- switch (!dynamic && !info->link_info->shared)
+ /* Some compilers warn about a Boolean-looking expression being
+ used in a switch. The explicit cast silences them. */
+- switch ((int) (!dynamic && !info->link_info->shared))
- {
- case 1:
+ {
diff --git a/devel/gdb/files/patch-bfd-elfnn-ia64.c b/devel/gdb/files/patch-bfd-elfnn-ia64.c
deleted file mode 100644
index 2ee92539537e..000000000000
--- a/devel/gdb/files/patch-bfd-elfnn-ia64.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- bfd/elfnn-ia64.c.orig 2013-03-11 10:21:19.000000000 +0100
-+++ bfd/elfnn-ia64.c 2013-03-11 10:21:43.000000000 +0100
-@@ -1546,7 +1546,7 @@
- bfd_set_section_flags (abfd, ia64_info->root.sgot,
- SEC_SMALL_DATA | flags);
- /* The .got section is always aligned at 8 bytes. */
-- bfd_set_section_alignment (abfd, ia64_info->root.sgot, 3);
-+ (void)bfd_set_section_alignment (abfd, ia64_info->root.sgot, 3);
- }
-
- if (!get_pltoff (abfd, info, ia64_info))
diff --git a/devel/gdb/files/patch-bfd-elfxx-mips.c b/devel/gdb/files/patch-bfd-elfxx-mips.c
deleted file mode 100644
index bcf9ea1def75..000000000000
--- a/devel/gdb/files/patch-bfd-elfxx-mips.c
+++ /dev/null
@@ -1,28 +0,0 @@
---- bfd/elfxx-mips.c.orig 2013-03-07 10:12:06.000000000 +0100
-+++ bfd/elfxx-mips.c 2013-03-07 10:13:30.000000000 +0100
-@@ -7292,20 +7292,20 @@
- /* Change alignments of some sections. */
- s = bfd_get_linker_section (abfd, ".hash");
- if (s != NULL)
-- bfd_set_section_alignment (abfd, s, MIPS_ELF_LOG_FILE_ALIGN (abfd));
-+ (void)bfd_set_section_alignment (abfd, s, MIPS_ELF_LOG_FILE_ALIGN (abfd));
- s = bfd_get_linker_section (abfd, ".dynsym");
- if (s != NULL)
-- bfd_set_section_alignment (abfd, s, MIPS_ELF_LOG_FILE_ALIGN (abfd));
-+ (void)bfd_set_section_alignment (abfd, s, MIPS_ELF_LOG_FILE_ALIGN (abfd));
- s = bfd_get_linker_section (abfd, ".dynstr");
- if (s != NULL)
-- bfd_set_section_alignment (abfd, s, MIPS_ELF_LOG_FILE_ALIGN (abfd));
-+ (void)bfd_set_section_alignment (abfd, s, MIPS_ELF_LOG_FILE_ALIGN (abfd));
- /* ??? */
- s = bfd_get_section_by_name (abfd, ".reginfo");
- if (s != NULL)
-- bfd_set_section_alignment (abfd, s, MIPS_ELF_LOG_FILE_ALIGN (abfd));
-+ (void)bfd_set_section_alignment (abfd, s, MIPS_ELF_LOG_FILE_ALIGN (abfd));
- s = bfd_get_linker_section (abfd, ".dynamic");
- if (s != NULL)
-- bfd_set_section_alignment (abfd, s, MIPS_ELF_LOG_FILE_ALIGN (abfd));
-+ (void)bfd_set_section_alignment (abfd, s, MIPS_ELF_LOG_FILE_ALIGN (abfd));
- }
-
- if (!info->shared)
diff --git a/devel/gdb/files/patch-bfd-elfxx-tilegx.c b/devel/gdb/files/patch-bfd-elfxx-tilegx.c
deleted file mode 100644
index 8037f1fae40e..000000000000
--- a/devel/gdb/files/patch-bfd-elfxx-tilegx.c
+++ /dev/null
@@ -1,20 +0,0 @@
---- bfd/elfxx-tilegx.c.orig 2013-03-07 10:14:34.000000000 +0100
-+++ bfd/elfxx-tilegx.c 2013-03-07 10:15:31.000000000 +0100
-@@ -1205,7 +1205,7 @@
- };
-
- /* Reuse an existing info 10 bundle. */
--static const bfd_byte const *tilegx64_plt_tail_entry =
-+static const bfd_byte *tilegx64_plt_tail_entry =
- &tilegx64_short_plt_entry[4 * TILEGX_BUNDLE_SIZE_IN_BYTES];
-
- static const bfd_byte
-@@ -1250,7 +1250,7 @@
- };
-
- /* Reuse an existing info 10 bundle. */
--static const bfd_byte const *tilegx32_plt_tail_entry =
-+static const bfd_byte *tilegx32_plt_tail_entry =
- &tilegx64_short_plt_entry[4 * TILEGX_BUNDLE_SIZE_IN_BYTES];
-
- static int
diff --git a/devel/gdb/files/patch-bfd-mach-o.c b/devel/gdb/files/patch-bfd-mach-o.c
deleted file mode 100644
index 2996a19cb932..000000000000
--- a/devel/gdb/files/patch-bfd-mach-o.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- bfd/mach-o.c.orig 2013-03-07 10:15:55.000000000 +0100
-+++ bfd/mach-o.c 2013-03-07 10:16:09.000000000 +0100
-@@ -2683,7 +2683,7 @@
- s->flags = xlat->macho_sectype | xlat->macho_secattr;
- s->align = xlat->sectalign > bfdalign ? xlat->sectalign
- : bfdalign;
-- bfd_set_section_alignment (abfd, sec, s->align);
-+ (void)bfd_set_section_alignment (abfd, sec, s->align);
- bfd_flags = bfd_get_section_flags (abfd, sec);
- if (bfd_flags == SEC_NO_FLAGS)
- bfd_set_section_flags (abfd, sec, xlat->bfd_flags);
diff --git a/devel/gdb/files/patch-bfd-mmo.c b/devel/gdb/files/patch-bfd-mmo.c
deleted file mode 100644
index 8cf25f96f5bb..000000000000
--- a/devel/gdb/files/patch-bfd-mmo.c
+++ /dev/null
@@ -1,29 +0,0 @@
---- bfd/mmo.c.orig 2013-03-11 12:17:57.000000000 +0100
-+++ bfd/mmo.c 2013-03-11 12:17:21.000000000 +0100
-@@ -663,7 +663,7 @@
- return NULL;
-
- if (! sec->user_set_vma)
-- bfd_set_section_vma (abfd, sec, vma);
-+ (void)bfd_set_section_vma (abfd, sec, vma);
- if (! bfd_set_section_flags (abfd, sec,
- bfd_get_section_flags (abfd, sec)
- | SEC_CODE | SEC_LOAD | SEC_ALLOC))
-@@ -677,7 +677,7 @@
- return NULL;
-
- if (! sec->user_set_vma)
-- bfd_set_section_vma (abfd, sec, vma);
-+ (void)bfd_set_section_vma (abfd, sec, vma);
- if (! bfd_set_section_flags (abfd, sec,
- bfd_get_section_flags (abfd, sec)
- | SEC_LOAD | SEC_ALLOC))
-@@ -693,7 +693,7 @@
- sprintf (sec_name, ".MMIX.sec.%d", abfd->tdata.mmo_data->sec_no++);
- sec = mmo_make_section (abfd, sec_name);
- if (! sec->user_set_vma)
-- bfd_set_section_vma (abfd, sec, vma);
-+ (void)bfd_set_section_vma (abfd, sec, vma);
-
- if (! bfd_set_section_flags (abfd, sec,
- bfd_get_section_flags (abfd, sec)
diff --git a/devel/gdb/files/patch-bfd-opncls.c b/devel/gdb/files/patch-bfd-opncls.c
deleted file mode 100644
index 16930b80441d..000000000000
--- a/devel/gdb/files/patch-bfd-opncls.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- bfd/opncls.c.orig 2012-12-18 14:18:47.000000000 +0100
-+++ bfd/opncls.c 2012-12-18 14:19:18.000000000 +0100
-@@ -254,7 +254,7 @@
- then it may have been opened with special flags that make it
- unsafe to close and reopen the file. */
- if (fd == -1)
-- bfd_set_cacheable (nbfd, TRUE);
-+ (void)bfd_set_cacheable (nbfd, TRUE);
-
- return nbfd;
- }
diff --git a/devel/gdb/files/patch-bfd-peicode.h b/devel/gdb/files/patch-bfd-peicode.h
deleted file mode 100644
index 3e2413016643..000000000000
--- a/devel/gdb/files/patch-bfd-peicode.h
+++ /dev/null
@@ -1,11 +0,0 @@
---- bfd/peicode.h.orig 2012-12-18 14:22:02.000000000 +0100
-+++ bfd/peicode.h 2012-12-18 14:22:21.000000000 +0100
-@@ -602,7 +602,7 @@
-
- bfd_set_section_flags (vars->abfd, sec, flags | extra_flags);
-
-- bfd_set_section_alignment (vars->abfd, sec, 2);
-+ (void)bfd_set_section_alignment (vars->abfd, sec, 2);
-
- /* Check that we will not run out of space. */
- BFD_ASSERT (vars->data + size < vars->bim->buffer + vars->bim->size);
diff --git a/devel/gdb/files/patch-bfd-vms-alpha.c b/devel/gdb/files/patch-bfd-vms-alpha.c
deleted file mode 100644
index 2549ec53504a..000000000000
--- a/devel/gdb/files/patch-bfd-vms-alpha.c
+++ /dev/null
@@ -1,20 +0,0 @@
---- bfd/vms-alpha.c.orig 2013-03-11 10:40:39.000000000 +0100
-+++ bfd/vms-alpha.c 2013-03-11 12:31:12.000000000 +0100
-@@ -6044,7 +6044,7 @@
- unsigned char *rec, unsigned int rec_len)
- {
- unsigned int off = sizeof (struct vms_egsd);
-- unsigned int sec_len;
-+ unsigned int sec_len = 0;
-
- fprintf (file, _(" %s (len=%u+%u):\n"), name,
- (unsigned)(rec_len - sizeof (struct vms_eobjrec)),
-@@ -9118,7 +9118,7 @@
- vms_debug2 ((1, "vms_new_section_hook (%p, [%d]%s)\n",
- abfd, section->index, section->name));
-
-- bfd_set_section_alignment (abfd, section, 0);
-+ (void)bfd_set_section_alignment (abfd, section, 0);
-
- vms_debug2 ((7, "%d: %s\n", section->index, section->name));
-
diff --git a/devel/gdb/files/patch-bfd-xcofflink.c b/devel/gdb/files/patch-bfd-xcofflink.c
deleted file mode 100644
index 631d5544882f..000000000000
--- a/devel/gdb/files/patch-bfd-xcofflink.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- bfd/xcofflink.c.orig 2013-03-07 10:16:45.000000000 +0100
-+++ bfd/xcofflink.c 2013-03-07 10:19:50.000000000 +0100
-@@ -6273,7 +6273,7 @@
- irel = flinfo.section_info[o->target_index].relocs;
- irelend = irel + o->reloc_count;
- rel_hash = flinfo.section_info[o->target_index].rel_hashes;
-- for (; irel < irelend; irel++, rel_hash++, erel += relsz)
-+ for (; irel < irelend; irel++, rel_hash++)
- {
- if (*rel_hash != NULL)
- {
diff --git a/devel/gdb/files/patch-gdb-amd64bsd-nat.c b/devel/gdb/files/patch-gdb-amd64bsd-nat.c
index 50d2be8e96e5..5fb51d29e7a8 100644
--- a/devel/gdb/files/patch-gdb-amd64bsd-nat.c
+++ b/devel/gdb/files/patch-gdb-amd64bsd-nat.c
@@ -17,11 +17,11 @@
+ memset( &regs, 0, sizeof(struct reg));
+ memset( &oldregs, 0, sizeof(struct reg));
- if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
+ if (ptrace (PT_GETREGS, ptid_get_pid (inferior_ptid),
(PTRACE_TYPE_ARG3) &regs, 0) == -1)
perror_with_name (_("Couldn't get registers"));
-+ ptrace (PT_GETREGS, PIDGET (inferior_ptid),
++ ptrace (PT_GETREGS, ptid_get_pid (inferior_ptid),
+ (PTRACE_TYPE_ARG3) &oldregs, 0);
amd64_collect_native_gregset (regcache, &regs, regnum);
@@ -31,6 +31,6 @@
+ regs.r_rflags ^= (regs.r_rflags ^ oldregs.r_rflags ) & ~PSL_USERCHANGE;
+ //printf(" allowed regs.r_rflags = 0x%8.8X\n", regs.r_rflags );
+ }
- if (ptrace (PT_SETREGS, PIDGET (inferior_ptid),
+ if (ptrace (PT_SETREGS, ptid_get_pid (inferior_ptid),
(PTRACE_TYPE_ARG3) &regs, 0) == -1)
perror_with_name (_("Couldn't write registers"));
diff --git a/devel/gdb/files/patch-gdb-gdb_wchar.h b/devel/gdb/files/patch-gdb-gdb_wchar.h
new file mode 100644
index 000000000000..f70be80281e5
--- /dev/null
+++ b/devel/gdb/files/patch-gdb-gdb_wchar.h
@@ -0,0 +1,20 @@
+--- gdb/gdb_wchar.h.orig 2014-06-05 10:44:18.914279516 +0200
++++ gdb/gdb_wchar.h 2014-06-05 10:46:07.264279306 +0200
+@@ -56,7 +56,7 @@
+ iconvlist. */
+ #if defined (HAVE_ICONV) && defined (HAVE_WCHAR_H) && defined (HAVE_BTOWC) \
+ && (defined (__STDC_ISO_10646__) \
+- || (defined (_LIBICONV_VERSION) && _LIBICONV_VERSION >= 0x108))
++ || (!defined (LIBICONV_PLUG) && defined (_LIBICONV_VERSION) && _LIBICONV_VERSION >= 0x108))
+
+ #include <wchar.h>
+ #include <wctype.h>
+@@ -82,7 +82,7 @@
+ #define INTERMEDIATE_ENCODING intermediate_encoding ()
+ const char *intermediate_encoding (void);
+
+-#elif defined (_LIBICONV_VERSION) && _LIBICONV_VERSION >= 0x108
++#elif !defined (LIBICONV_PLUG) && defined (_LIBICONV_VERSION) && _LIBICONV_VERSION >= 0x108
+ #define INTERMEDIATE_ENCODING "wchar_t"
+ #else
+ /* This shouldn't happen, because the earlier #if should have filtered
diff --git a/devel/gdb/files/patch-include-cgen-basic-ops.h b/devel/gdb/files/patch-include-cgen-basic-ops.h
deleted file mode 100644
index 30c9f2ec399c..000000000000
--- a/devel/gdb/files/patch-include-cgen-basic-ops.h
+++ /dev/null
@@ -1,43 +0,0 @@
---- include/cgen/basic-ops.h.orig 2013-03-07 17:31:21.000000000 +0100
-+++ include/cgen/basic-ops.h 2013-03-07 17:31:28.000000000 +0100
-@@ -24,11 +24,16 @@
-
- #include <assert.h>
-
--#if defined (__GNUC__) && ! defined (SEMOPS_DEFINE_INLINE)
-+#if defined (__GNUC__) && ! defined (SEMOPS_DEFINE_INLINE) && ! defined (__clang__)
- #define SEMOPS_DEFINE_INLINE
- #define SEMOPS_INLINE extern inline
- #else
--#define SEMOPS_INLINE
-+# if defined (__clang__) && ! defined (SEMOPS_DEFINE_INLINE)
-+# define SEMOPS_DEFINE_INLINE
-+# define SEMOPS_INLINE static inline
-+# else
-+# define SEMOPS_INLINE
-+# endif
- #endif
-
- /* These don't really have a mode. */
-@@ -295,11 +300,16 @@
- significant and word number 0 is the most significant word.
- ??? May also wish an endian-dependent version. Later. */
-
--QI SUBWORDSIQI (SI, int);
--HI SUBWORDSIHI (SI, int);
--QI SUBWORDDIQI (DI, int);
--HI SUBWORDDIHI (DI, int);
--SI SUBWORDDISI (DI, int);
-+#if defined (__clang__) && defined (SEMOPS_DEFINE_INLINE)
-+#define SEMOPS_STATIC static
-+#else
-+#define SEMOPS_STATIC
-+#endif
-+SEMOPS_STATIC QI SUBWORDSIQI (SI, int);
-+SEMOPS_STATIC HI SUBWORDSIHI (SI, int);
-+SEMOPS_STATIC QI SUBWORDDIQI (DI, int);
-+SEMOPS_STATIC HI SUBWORDDIHI (DI, int);
-+SEMOPS_STATIC SI SUBWORDDISI (DI, int);
-
- #ifdef SEMOPS_DEFINE_INLINE
-
diff --git a/devel/gdb/files/patch-opcodes-i386-dis.c b/devel/gdb/files/patch-opcodes-i386-dis.c
deleted file mode 100644
index 90ea0dec5b56..000000000000
--- a/devel/gdb/files/patch-opcodes-i386-dis.c
+++ /dev/null
@@ -1,59 +0,0 @@
---- opcodes/i386-dis.c.orig 2012-07-16 14:58:29.000000000 +0200
-+++ opcodes/i386-dis.c 2012-12-18 15:22:10.000000000 +0100
-@@ -11991,7 +11991,7 @@
- static void
- OP_ST (int bytemode ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED)
- {
-- oappend ("%st" + intel_syntax);
-+ oappend (&"%st"[(short)intel_syntax]);
- }
-
- static void
-@@ -12520,32 +12520,32 @@
- if (prefixes & PREFIX_CS)
- {
- used_prefixes |= PREFIX_CS;
-- oappend ("%cs:" + intel_syntax);
-+ oappend (&"%cs:"[(short)intel_syntax]);
- }
- if (prefixes & PREFIX_DS)
- {
- used_prefixes |= PREFIX_DS;
-- oappend ("%ds:" + intel_syntax);
-+ oappend (&"%ds:"[(short)intel_syntax]);
- }
- if (prefixes & PREFIX_SS)
- {
- used_prefixes |= PREFIX_SS;
-- oappend ("%ss:" + intel_syntax);
-+ oappend (&"%ss:"[(short)intel_syntax]);
- }
- if (prefixes & PREFIX_ES)
- {
- used_prefixes |= PREFIX_ES;
-- oappend ("%es:" + intel_syntax);
-+ oappend (&"%es:"[(short)intel_syntax]);
- }
- if (prefixes & PREFIX_FS)
- {
- used_prefixes |= PREFIX_FS;
-- oappend ("%fs:" + intel_syntax);
-+ oappend (&"%fs:"[(short)intel_syntax]);
- }
- if (prefixes & PREFIX_GS)
- {
- used_prefixes |= PREFIX_GS;
-- oappend ("%gs:" + intel_syntax);
-+ oappend (&"%gs:"[(short)intel_syntax]);
- }
- }
-
-@@ -13876,7 +13876,7 @@
- intel_operand_size (b_mode, sizeflag);
- }
- }
-- oappend ("%es:" + intel_syntax);
-+ oappend (&"%es:"[(short)intel_syntax]);
- ptr_reg (code, sizeflag);
- }
-
diff --git a/devel/gdb/files/patch-opcodes-ia64-asmtab.c b/devel/gdb/files/patch-opcodes-ia64-asmtab.c
deleted file mode 100644
index e7a7d4ed5790..000000000000
--- a/devel/gdb/files/patch-opcodes-ia64-asmtab.c
+++ /dev/null
@@ -1,37 +0,0 @@
---- opcodes/ia64-asmtab.c.orig 2013-04-28 14:55:03.000000000 +0200
-+++ opcodes/ia64-asmtab.c 2013-04-28 14:56:48.000000000 +0200
-@@ -102,7 +102,7 @@
- { "CPUID#", 7, 0, 5, -1, NULL, },
- { "CR[CMCV]", 29, 0, 3, 74, NULL, },
- { "CR[DCR]", 29, 0, 3, 0, NULL, },
-- { "CR[EOI]", 29, 0, 7, 67, "SC Section 5.8.3.4, \"End of External Interrupt Register (EOI Ð CR67)\" on page 2:119", },
-+ { "CR[EOI]", 29, 0, 7, 67, "SC Section 5.8.3.4, \"End of External Interrupt Register (EOI CR67)\" on page 2:119", },
- { "CR[GPTA]", 29, 0, 3, 9, NULL, },
- { "CR[IFA]", 29, 0, 1, 20, NULL, },
- { "CR[IFA]", 29, 0, 3, 20, NULL, },
-@@ -124,13 +124,13 @@
- { "CR[ITM]", 29, 0, 3, 1, NULL, },
- { "CR[ITV]", 29, 0, 3, 72, NULL, },
- { "CR[IVA]", 29, 0, 4, 2, NULL, },
-- { "CR[IVR]", 29, 0, 7, 65, "SC Section 5.8.3.2, \"External Interrupt Vector Register (IVR Ð CR65)\" on page 2:118", },
-- { "CR[LID]", 29, 0, 7, 64, "SC Section 5.8.3.1, \"Local ID (LID Ð CR64)\" on page 2:117", },
-+ { "CR[IVR]", 29, 0, 7, 65, "SC Section 5.8.3.2, \"External Interrupt Vector Register (IVR CR65)\" on page 2:118", },
-+ { "CR[LID]", 29, 0, 7, 64, "SC Section 5.8.3.1, \"Local ID (LID CR64)\" on page 2:117", },
- { "CR[LRR%], % in 0 - 1", 10, 0, 3, -1, NULL, },
- { "CR[PMV]", 29, 0, 3, 73, NULL, },
- { "CR[PTA]", 29, 0, 3, 8, NULL, },
- { "CR[TPR]", 29, 0, 3, 66, NULL, },
-- { "CR[TPR]", 29, 0, 7, 66, "SC Section 5.8.3.3, \"Task Priority Register (TPR Ð CR66)\" on page 2:119", },
-+ { "CR[TPR]", 29, 0, 7, 66, "SC Section 5.8.3.3, \"Task Priority Register (TPR CR66)\" on page 2:119", },
- { "CR[TPR]", 29, 0, 1, 66, NULL, },
- { "CR%, % in 3-7, 10-15, 18, 28-63, 75-79, 82-127", 11, 0, 0, -1, NULL, },
- { "DAHR%, % in 0-7", 12, 0, 1, -1, NULL, },
-@@ -305,7 +305,7 @@
- { "CPUID#", 7, 1, 0, -1, NULL, },
- { "CR[CMCV]", 29, 1, 2, 74, NULL, },
- { "CR[DCR]", 29, 1, 2, 0, NULL, },
-- { "CR[EOI]", 29, 1, 7, 67, "SC Section 5.8.3.4, \"End of External Interrupt Register (EOI Ð CR67)\" on page 2:119", },
-+ { "CR[EOI]", 29, 1, 7, 67, "SC Section 5.8.3.4, \"End of External Interrupt Register (EOI CR67)\" on page 2:119", },
- { "CR[GPTA]", 29, 1, 2, 9, NULL, },
- { "CR[IFA]", 29, 1, 2, 20, NULL, },
- { "CR[IFS]", 29, 1, 2, 23, NULL, },
diff --git a/devel/gdb/files/patch-opcodes-rl78-dis.c b/devel/gdb/files/patch-opcodes-rl78-dis.c
deleted file mode 100644
index 5305b44a68ae..000000000000
--- a/devel/gdb/files/patch-opcodes-rl78-dis.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- opcodes/rl78-dis.c.orig 2013-11-20 14:18:22.940364966 +0100
-+++ opcodes/rl78-dis.c 2013-11-20 15:25:32.745367278 +0100
-@@ -217,7 +217,7 @@
-
- case '0':
- case '1':
-- oper = opcode.op + *s - '0';
-+ oper = *s == '0' ? &opcode.op[0] : &opcode.op[1];
- if (do_es)
- {
- if (oper->use_es && indirect_type (oper->type))
diff --git a/devel/gdb/files/patch-opcodes-v850-dis.c b/devel/gdb/files/patch-opcodes-v850-dis.c
deleted file mode 100644
index 5cbc2683d4d6..000000000000
--- a/devel/gdb/files/patch-opcodes-v850-dis.c
+++ /dev/null
@@ -1,20 +0,0 @@
---- opcodes/v850-dis.c.orig 2013-01-24 12:14:05.000000000 +0100
-+++ opcodes/v850-dis.c 2013-04-29 10:10:25.000000000 +0200
-@@ -73,7 +73,7 @@
- "chbwbd", "cibid", "cibiwbd", "cibwbd", "cfald", "cistd", "cildd"
- };
-
--static const int const v850_cacheop_codes[] =
-+static const int v850_cacheop_codes[] =
- {
- 0x00, 0x20, 0x40, 0x60, 0x61, 0x04, 0x06,
- 0x07, 0x24, 0x26, 0x27, 0x44, 0x64, 0x65, -1
-@@ -82,7 +82,7 @@
- static const char *const v850_prefop_names[] =
- { "prefi", "prefd" };
-
--static const int const v850_prefop_codes[] =
-+static const int v850_prefop_codes[] =
- { 0x00, 0x04, -1};
-
- static void
diff --git a/devel/gdb/pkg-plist b/devel/gdb/pkg-plist
index 7d2d82c9a1b2..de05d4e0d514 100644
--- a/devel/gdb/pkg-plist
+++ b/devel/gdb/pkg-plist
@@ -3,13 +3,18 @@ bin/gdb%%VER%%
%%TUI%%bin/gdbtui%%VER%%
man/man1/gdb%%VER%%.1.gz
%%PYTHON%%%%DATADIR%%%%VER%%/python/gdb/__init__.py
-%%PYTHON%%%%DATADIR%%%%VER%%/python/gdb/types.py
+%%PYTHON%%%%DATADIR%%%%VER%%/python/gdb/FrameDecorator.py
+%%PYTHON%%%%DATADIR%%%%VER%%/python/gdb/FrameIterator.py
+%%PYTHON%%%%DATADIR%%%%VER%%/python/gdb/frames.py
%%PYTHON%%%%DATADIR%%%%VER%%/python/gdb/printing.py
%%PYTHON%%%%DATADIR%%%%VER%%/python/gdb/prompt.py
+%%PYTHON%%%%DATADIR%%%%VER%%/python/gdb/types.py
%%PYTHON%%%%DATADIR%%%%VER%%/python/gdb/command/__init__.py
+%%PYTHON%%%%DATADIR%%%%VER%%/python/gdb/command/bound_registers.py
+%%PYTHON%%%%DATADIR%%%%VER%%/python/gdb/command/explore.py
+%%PYTHON%%%%DATADIR%%%%VER%%/python/gdb/command/frame_filters.py
%%PYTHON%%%%DATADIR%%%%VER%%/python/gdb/command/pretty_printers.py
%%PYTHON%%%%DATADIR%%%%VER%%/python/gdb/command/prompt.py
-%%PYTHON%%%%DATADIR%%%%VER%%/python/gdb/command/explore.py
%%PYTHON%%%%DATADIR%%%%VER%%/python/gdb/command/type_printers.py
%%PYTHON%%%%DATADIR%%%%VER%%/python/gdb/function/__init__.py
%%PYTHON%%%%DATADIR%%%%VER%%/python/gdb/function/strfns.py