gdb: Update to 7.7.1

This commit is contained in:
Alexpux
2014-05-06 08:48:42 +04:00
parent e07be38ad6
commit a483513366
2 changed files with 11 additions and 73 deletions

View File

@@ -5,8 +5,8 @@ _realname=gdb
_mingw_suff=mingw-w64-${CARCH}
_gcc_ver=4.9.0
pkgname=("${_mingw_suff}-${_realname}")
pkgver=7.7
pkgrel=6
pkgver=7.7.1
pkgrel=1
pkgdesc="GNU Debugger (mingw-w64)"
arch=('any')
url="http://www.gnu.org/software/gdb/"
@@ -20,20 +20,19 @@ depends=("${_mingw_suff}-libiconv"
checkdepends=('dejagnu' 'bc')
makedepends=("${_mingw_suff}-libiconv" "${_mingw_suff}-zlib" "${_mingw_suff}-ncurses" "${_mingw_suff}-xz")
options=('staticlibs' '!distcc' '!ccache')
source=("ftp://mirrors.kernel.org/sources.redhat.com/gdb/releases/gdb-${pkgver}.tar.bz2"
'gdbinit'
'gdb-fix-display-tabs-on-mingw.patch'
'gdb-mingw-gcc-4.7.patch'
'gdb-perfomance.patch'
'gdb-fix-python-stack-corruption.patch'
'gdb-fix-using-gnu-print.patch'
'020-add-bigobj-format.patch')
md5sums=('271a18f41858a7e98b28ae4eb91287c9'
source=(http://ftp.gnu.org/gnu/gdb/gdb-${pkgver}.tar.bz2{,.sig}
'gdbinit'
'gdb-fix-display-tabs-on-mingw.patch'
'gdb-mingw-gcc-4.7.patch'
'gdb-perfomance.patch'
'gdb-fix-using-gnu-print.patch'
'020-add-bigobj-format.patch')
md5sums=('77b20b515e7c25f032cb9732a66620fe'
'SKIP'
'dec2439447cb1accf037457b459093f7'
'e48292d553379a9765c82e80e618ffd2'
'7cc5df72d958ef3e4b1ffa9f7b069e6f'
'e9b7c252fedfa950998f5f3b32536461'
'3e8c305a3855f01b1ebfd608f2378ffe'
'd7112b220466a294aa266bb4d5c06a59'
'9b596cfe3a448dc5823370173349d88b')
@@ -47,7 +46,6 @@ prepare() {
# http://sourceware.org/bugzilla/show_bug.cgi?id=15412
patch -p1 -i ${srcdir}/gdb-perfomance.patch
patch -p1 -i ${srcdir}/gdb-fix-python-stack-corruption.patch
patch -p1 -i ${srcdir}/gdb-fix-using-gnu-print.patch
patch -p1 -i ${srcdir}/020-add-bigobj-format.patch
@@ -97,5 +95,4 @@ package() {
rm -f ${pkgdir}${MINGW_PREFIX}/include/*.h
rm -f ${pkgdir}${MINGW_PREFIX}/lib/*.a
}

View File

@@ -1,59 +0,0 @@
From e661fce02d46838124aa94618c4b87b59d922ab3 Mon Sep 17 00:00:00 2001
From: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Sun, 9 Feb 2014 18:47:40 +0100
Subject: [PATCH] Fix Python stack corruption
The fix is obvious.
gdb/
2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
Fix Python stack corruption.
* python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
gdb_py_longest.
Message-ID: <20140207171701.GA25187@host2.jankratochvil.net>
---
gdb/ChangeLog | 6 ++++++
gdb/python/py-linetable.c | 4 ++--
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 31e1d89..5f840aa 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix Python stack corruption.
+ * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
+ gdb_py_longest.
+
2014-02-06 Joel Brobecker <brobecker@adacore.com>
* version.in: Set GDB version number to 7.7.0.DATE-cvs.
diff --git a/gdb/python/py-linetable.c b/gdb/python/py-linetable.c
index e83d46d..8b5362b 100644
--- a/gdb/python/py-linetable.c
+++ b/gdb/python/py-linetable.c
@@ -168,7 +168,7 @@ static PyObject *
ltpy_get_pcs_for_line (PyObject *self, PyObject *args)
{
struct symtab *symtab;
- int py_line;
+ gdb_py_longest py_line;
struct linetable_entry *best_entry = NULL;
linetable_entry_object *result;
VEC (CORE_ADDR) *pcs = NULL;
@@ -200,7 +200,7 @@ static PyObject *
ltpy_has_line (PyObject *self, PyObject *args)
{
struct symtab *symtab;
- int py_line;
+ gdb_py_longest py_line;
int index;
LTPY_REQUIRE_VALID (self, symtab);
--
1.8.5.5