Skip to content

Commit

Permalink
Bump gdb version to one which supports both python 2 and 3
Browse files Browse the repository at this point in the history
  • Loading branch information
zeldin committed Jul 29, 2023
1 parent 3f062df commit 8ea15d2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 39 deletions.
2 changes: 1 addition & 1 deletion depends/check-python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ pyprefix=$(python-config --prefix)
[ $? -eq 0 ] || { echo "ERROR: Install python-dev before continuing."; exit 1; }

## Check for python header files
( 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; }
( 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; }
26 changes: 0 additions & 26 deletions patches/gdb-7.5.1-PS3.patch

This file was deleted.

9 changes: 3 additions & 6 deletions scripts/003-gdb-PPU.sh
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
#!/bin/sh -e
# gdb-PPU.sh by Naomi Peori ([email protected])

GDB="gdb-7.5.1"
GDB="gdb-11.2"

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

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

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

## Unpack the source code.
tar xfvj ${GDB}.tar.bz2

## Patch the source code.
cat ../patches/${GDB}-PS3.patch | patch -p1 -d ${GDB}
tar xfvJ ${GDB}.tar.xz

## Replace config.guess and config.sub
cp config.guess config.sub ${GDB}
Expand Down
9 changes: 3 additions & 6 deletions scripts/007-gdb-SPU.sh
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
#!/bin/sh -e
# gdb-SPU.sh by Naomi Peori ([email protected])

GDB="gdb-7.5.1"
GDB="gdb-11.2"

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

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

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

## Unpack the source code.
tar xfvj ${GDB}.tar.bz2

## Patch the source code.
cat ../patches/${GDB}-PS3.patch | patch -p1 -d ${GDB}
tar xfvJ ${GDB}.tar.xz

## Replace config.guess and config.sub
cp config.guess config.sub ${GDB}
Expand Down

0 comments on commit 8ea15d2

Please sign in to comment.