mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
- Update to version 7.7.1.
- Fix a problem on FreeBSD 10+ with converters/libiconv installed. GDB could not print string variables then. PR: 190700 Submitted by: luca.pizzamiglio@gmail.com (maintainer)
This commit is contained in:
parent
10a0f4fc2d
commit
ee9844c8f2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=357297
@ -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}
|
||||
|
@ -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
|
||||
|
@ -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 \
|
||||
|
@ -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;
|
||||
|
@ -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
|
@ -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. */
|
@ -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;
|
||||
}
|
@ -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_",
|
20
devel/gdb/files/patch-bfd-elf32-nds32.c
Normal file
20
devel/gdb/files/patch-bfd-elf32-nds32.c
Normal file
@ -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. */
|
@ -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)
|
||||
{
|
@ -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
|
@ -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:
|
||||
+ {
|
||||
|
@ -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))
|
@ -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)
|
@ -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
|
@ -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);
|
@ -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)
|
@ -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;
|
||||
}
|
@ -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);
|
@ -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));
|
||||
|
@ -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)
|
||||
{
|
@ -17,11 +17,11 @@
|
||||
|
||||
+ memset( ®s, 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) ®s, 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, ®s, 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) ®s, 0) == -1)
|
||||
perror_with_name (_("Couldn't write registers"));
|
||||
|
20
devel/gdb/files/patch-gdb-gdb_wchar.h
Normal file
20
devel/gdb/files/patch-gdb-gdb_wchar.h
Normal file
@ -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
|
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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, },
|
@ -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))
|
@ -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
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user