Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
aports
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
650
Issues
650
List
Boards
Labels
Service Desk
Milestones
Merge Requests
186
Merge Requests
186
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
aports
Commits
bbb5b988
Commit
bbb5b988
authored
Oct 23, 2010
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Revert "main/gdb: upgrade to 7.2""
This reverts commit
d666f38c
.
parent
d666f38c
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
77 additions
and
3466 deletions
+77
-3466
main/gdb/50_all_gdb-pie-1.patch
main/gdb/50_all_gdb-pie-1.patch
+0
-1330
main/gdb/50_all_gdb-pie-2.patch
main/gdb/50_all_gdb-pie-2.patch
+0
-2122
main/gdb/80_all_gdb-6.5-dwarf-stack-overflow.patch
main/gdb/80_all_gdb-6.5-dwarf-stack-overflow.patch
+54
-0
main/gdb/APKBUILD
main/gdb/APKBUILD
+23
-14
No files found.
main/gdb/50_all_gdb-pie-1.patch
deleted
100644 → 0
View file @
d666f38c
This diff is collapsed.
Click to expand it.
main/gdb/50_all_gdb-pie-2.patch
deleted
100644 → 0
View file @
d666f38c
This diff is collapsed.
Click to expand it.
main/gdb/80_all_gdb-6.5-dwarf-stack-overflow.patch
0 → 100644
View file @
bbb5b988
http://bugs.gentoo.org/144833
for gdb/ChangeLog:
2006-08-22 Will Drewry <wad@google.com>
Tavis Ormandy <taviso@google.com>
* dwarf2read.c (decode_locdesc): Enforce location description stack
boundaries.
* dwarfread.c (locval): Likewise.
2007-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
Port to GDB-6.7.
Index: gdb-6.7/gdb/dwarf2read.c
===================================================================
--- gdb-6.7.orig/gdb/dwarf2read.c 2007-10-15 00:08:30.000000000 +0200
+++ gdb-6.7/gdb/dwarf2read.c 2007-10-15 21:42:43.000000000 +0200
@@ -9070,8 +9070,7 @@
dwarf2_fundamental_type (struct objfile
callers will only want a very basic result and this can become a
complaint.
- Note that stack[0] is unused except as a default error return.
- Note that stack overflow is not yet handled. */
+ Note that stack[0] is unused except as a default error return. */
static CORE_ADDR
decode_locdesc (struct dwarf_block *blk, struct dwarf2_cu *cu)
@@ -9088,7 +9087,7 @@
decode_locdesc (struct dwarf_block *blk,
i = 0;
stacki = 0;
- stack[stacki] = 0;
+ stack[++stacki] = 0;
while (i < size)
{
@@ -9270,6 +9269,16 @@
decode_locdesc (struct dwarf_block *blk,
dwarf_stack_op_name (op));
return (stack[stacki]);
}
+ /* Enforce maximum stack depth of size-1 to avoid ++stacki writing
+ outside of the allocated space. Also enforce minimum > 0.
+ -- wad@google.com 14 Aug 2006 */
+ if (stacki >= sizeof (stack) / sizeof (*stack) - 1)
+ internal_error (__FILE__, __LINE__,
+ _("location description stack too deep: %d"),
+ stacki);
+ if (stacki <= 0)
+ internal_error (__FILE__, __LINE__,
+ _("location description stack too shallow"));
}
return (stack[stacki]);
}
main/gdb/APKBUILD
View file @
bbb5b988
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname
=
gdb
pkgname
=
gdb
pkgver
=
6.8
pkgver
=
7.2
pkgrel
=
4
pkgrel
=
0
pkgdesc
=
"The GNU Debugger"
pkgdesc
=
"The GNU Debugger"
url
=
"http://sources.redhat.com/gdb/"
url
=
"http://sources.redhat.com/gdb/"
license
=
"GPL3"
license
=
"GPL3"
...
@@ -9,19 +9,25 @@ depends=
...
@@ -9,19 +9,25 @@ depends=
makedepends
=
"ncurses-dev expat-dev"
makedepends
=
"ncurses-dev expat-dev"
subpackages
=
"
$pkgname
-doc"
subpackages
=
"
$pkgname
-doc"
source
=
"http://ftp.gnu.org/gnu/
$pkgname
/
$pkgname
-
$pkgver
.tar.bz2
source
=
"http://ftp.gnu.org/gnu/
$pkgname
/
$pkgname
-
$pkgver
.tar.bz2
50_all_gdb-pie-1.patch
80_all_gdb-6.5-dwarf-stack-overflow.patch
50_all_gdb-pie-2.patch
"
"
# patches were found here:
# patches were found here:
# http://distfiles.gentoo.org/distfiles/$pkgname-$pkgver-patches-1.3.tar.lzma
# http://distfiles.gentoo.org/distfiles/gdb-7.2-patches-1.tar.xz
_builddir
=
"
$srcdir
"
/
$pkgname
-
$pkgver
build
()
{
prepare
()
{
cd
"
$srcdir
/
$pkgname
-
$pkgver
"
cd
"
$_builddir
"
for
i
in
../
*
.patch
;
do
for
i
in
$source
;
do
msg
"Applying
$i
"
case
$i
in
patch
-p1
<
$i
||
return
1
*
.patch
)
msg
"Applying
$i
"
patch
-p1
-i
"
$srcdir
"
/
$i
||
return
1
;;
esac
done
done
}
build
()
{
cd
"
$_builddir
"
./configure
--prefix
=
/usr
\
./configure
--prefix
=
/usr
\
--disable-nls
\
--disable-nls
\
--without-system-readline
\
--without-system-readline
\
...
@@ -29,6 +35,10 @@ build () {
...
@@ -29,6 +35,10 @@ build () {
--mandir
=
/usr/share/man
\
--mandir
=
/usr/share/man
\
--infodir
=
/usr/share/info
--infodir
=
/usr/share/info
make
||
return
1
make
||
return
1
}
package
()
{
cd
"
$_builddir
"
make
DESTDIR
=
"
$pkgdir
"
install
||
return
1
make
DESTDIR
=
"
$pkgdir
"
install
||
return
1
rm
-f
"
$pkgdir
"
/usr/share/info/dir
rm
-f
"
$pkgdir
"
/usr/share/info/dir
# those are provided by binutils
# those are provided by binutils
...
@@ -36,6 +46,5 @@ build () {
...
@@ -36,6 +46,5 @@ build () {
rm
-rf
"
$pkgdir
"
/usr/lib
rm
-rf
"
$pkgdir
"
/usr/lib
}
}
md5sums
=
"c9da266b884fb8fa54df786dfaadbc7a gdb-6.8.tar.bz2
md5sums
=
"64260e6c56979ee750a01055f16091a5 gdb-7.2.tar.bz2
7d5bcb23ffbadb9ce6ac24f37003f619 50_all_gdb-pie-1.patch
eb81ee111ba23682d4257dad50e01de0 80_all_gdb-6.5-dwarf-stack-overflow.patch"
33992db76732d26c6d1a3703b52e2c94 50_all_gdb-pie-2.patch"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment