Skip to content

Commit

Permalink
FIX gdb by compiling from source
Browse files Browse the repository at this point in the history
  • Loading branch information
wabscale committed Feb 17, 2022
1 parent e36a545 commit ac6886f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion theia/ide/theia-base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ RUN set -ex; \
libffi-dev libexpat1-dev \
libgdbm-dev liblzma-dev zlib1g-dev \
libsqlite3-dev libssl-dev openssl \
libsecret-1-0 sqlite3 bzip2; \
libsecret-1-0 sqlite3 libbz2-dev bzip2; \
apt remove -y python python-pip python3-pip python3; \
cd /; \
wget https://www.python.org/ftp/python/$PY_VERSION/Python-$PY_VERSION.tgz; \
Expand Down
14 changes: 12 additions & 2 deletions theia/ide/theia-xv6/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,19 @@ USER root
RUN set -ex; \
apt-get update; \
apt-get install -y --no-install-recommends \
gdb git make cmake \
git make cmake \
gcc-multilib g++-multilib libc6-dev \
clangd qemu-system-i386; \
clangd qemu-system-i386 libgmp-dev; \
cd /; \
wget https://ftp.gnu.org/gnu/gdb/gdb-11.2.tar.xz; \
tar xJf gdb-11.2.tar.xz; \
rm gdb-11.2.tar.xz; \
cd gdb-11.2; \
./configure --with-python=python3.10 --prefix=/usr/local; \
make -j $(nproc); \
make install; \
cd ..; \
rm -rf gdb-11.2; \
echo 'set auto-load safe-path /' > /etc/anubis/skel/.gdbinit; \
echo 'source /opt/pwndbg/gdbinit.py' >> /etc/anubis/skel/.gdbinit; \
git clone https://github.com/pwndbg/pwndbg.git /opt/pwndbg; \
Expand Down

0 comments on commit ac6886f

Please sign in to comment.