Skip to content

Commit 8ea15d2

Browse files
committed
Bump gdb version to one which supports both python 2 and 3
1 parent 3f062df commit 8ea15d2

File tree

4 files changed

+7
-39
lines changed

4 files changed

+7
-39
lines changed

depends/check-python.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ pyprefix=$(python-config --prefix)
99
[ $? -eq 0 ] || { echo "ERROR: Install python-dev before continuing."; exit 1; }
1010

1111
## Check for python header files
12-
( ls -1d "${pyprefix}"/include/python2.*/Python.h || ls -1d /opt/local/include/python2.*/Python.h ) 1>/dev/null 2>&1 || [ -f "$PYINSTALLDIR/include/Python.h" ] || { echo "ERROR: Install python-dev before continuing."; exit 1; }
12+
( ls -1d "${pyprefix}"/include/python[23].*/Python.h || ls -1d /opt/local/include/python[23].*/Python.h ) 1>/dev/null 2>&1 || [ -f "$PYINSTALLDIR/include/Python.h" ] || { echo "ERROR: Install python-dev before continuing."; exit 1; }

patches/gdb-7.5.1-PS3.patch

Lines changed: 0 additions & 26 deletions
This file was deleted.

scripts/003-gdb-PPU.sh

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,19 @@
11
#!/bin/sh -e
22
# gdb-PPU.sh by Naomi Peori (naomi@peori.ca)
33

4-
GDB="gdb-7.5.1"
4+
GDB="gdb-11.2"
55

66
if [ ! -d ${GDB} ]; then
77

88
## Download the source code.
9-
if [ ! -f ${GDB}.tar.bz2 ]; then wget --continue https://ftp.gnu.org/gnu/gdb/${GDB}.tar.bz2; fi
9+
if [ ! -f ${GDB}.tar.xz ]; then wget --continue https://ftp.gnu.org/gnu/gdb/${GDB}.tar.xz; fi
1010

1111
## Download an up-to-date config.guess and config.sub
1212
if [ ! -f config.guess ]; then wget --continue https://git.savannah.gnu.org/cgit/config.git/plain/config.guess; fi
1313
if [ ! -f config.sub ]; then wget --continue https://git.savannah.gnu.org/cgit/config.git/plain/config.sub; fi
1414

1515
## Unpack the source code.
16-
tar xfvj ${GDB}.tar.bz2
17-
18-
## Patch the source code.
19-
cat ../patches/${GDB}-PS3.patch | patch -p1 -d ${GDB}
16+
tar xfvJ ${GDB}.tar.xz
2017

2118
## Replace config.guess and config.sub
2219
cp config.guess config.sub ${GDB}

scripts/007-gdb-SPU.sh

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,19 @@
11
#!/bin/sh -e
22
# gdb-SPU.sh by Naomi Peori (naomi@peori.ca)
33

4-
GDB="gdb-7.5.1"
4+
GDB="gdb-11.2"
55

66
if [ ! -d ${GDB} ]; then
77

88
## Download the source code.
9-
if [ ! -f ${GDB}.tar.bz2 ]; then wget --continue https://ftp.gnu.org/gnu/gdb/${GDB}.tar.bz2; fi
9+
if [ ! -f ${GDB}.tar.xz ]; then wget --continue https://ftp.gnu.org/gnu/gdb/${GDB}.tar.xz; fi
1010

1111
## Download an up-to-date config.guess and config.sub
1212
if [ ! -f config.guess ]; then wget --continue https://git.savannah.gnu.org/cgit/config.git/plain/config.guess; fi
1313
if [ ! -f config.sub ]; then wget --continue https://git.savannah.gnu.org/cgit/config.git/plain/config.sub; fi
1414

1515
## Unpack the source code.
16-
tar xfvj ${GDB}.tar.bz2
17-
18-
## Patch the source code.
19-
cat ../patches/${GDB}-PS3.patch | patch -p1 -d ${GDB}
16+
tar xfvJ ${GDB}.tar.xz
2017

2118
## Replace config.guess and config.sub
2219
cp config.guess config.sub ${GDB}

0 commit comments

Comments
 (0)