Skip to content

Commit 1513aa7

Browse files
committed
Add XML support to GDB via Expat
This is not documented as thoroughly as it should be, but XML support is necessary for debugging across DLL boundaries, including even stepping over DLL functions without getting lost. This is a significant upgrade to GDB.
1 parent c1d57fd commit 1513aa7

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ ARG PREFIX=/w64devkit
55
ARG BINUTILS_VERSION=2.38
66
ARG BUSYBOX_VERSION=FRP-4621-gf3c5e8bc3
77
ARG CTAGS_VERSION=20200824
8+
ARG EXPAT_VERSION=2.4.8
89
ARG GCC_VERSION=12.1.0
910
ARG GDB_VERSION=10.2
1011
ARG GMP_VERSION=6.2.1
@@ -24,6 +25,7 @@ RUN curl --insecure --location --remote-name-all \
2425
https://ftp.gnu.org/gnu/binutils/binutils-$BINUTILS_VERSION.tar.xz \
2526
https://ftp.gnu.org/gnu/gcc/gcc-$GCC_VERSION/gcc-$GCC_VERSION.tar.xz \
2627
https://ftp.gnu.org/gnu/gdb/gdb-$GDB_VERSION.tar.xz \
28+
https://fossies.org/linux/www/expat-$EXPAT_VERSION.tar.xz \
2729
https://ftp.gnu.org/gnu/gmp/gmp-$GMP_VERSION.tar.xz \
2830
https://ftp.gnu.org/gnu/mpc/mpc-$MPC_VERSION.tar.gz \
2931
https://ftp.gnu.org/gnu/mpfr/mpfr-$MPFR_VERSION.tar.xz \
@@ -40,6 +42,7 @@ RUN sha256sum -c $PREFIX/src/SHA256SUMS \
4042
&& tar xzf universal-ctags_0+git$CTAGS_VERSION.orig.tar.gz \
4143
&& tar xJf gcc-$GCC_VERSION.tar.xz \
4244
&& tar xJf gdb-$GDB_VERSION.tar.xz \
45+
&& tar xJf expat-$EXPAT_VERSION.tar.xz \
4346
&& tar xJf gmp-$GMP_VERSION.tar.xz \
4447
&& tar xzf mpc-$MPC_VERSION.tar.gz \
4548
&& tar xJf mpfr-$MPFR_VERSION.tar.xz \
@@ -289,9 +292,23 @@ RUN /mingw-w64-v$MINGW_VERSION/mingw-w64-tools/gendef/configure \
289292
&& make -j$(nproc) \
290293
&& cp gendef.exe $PREFIX/bin/
291294

295+
WORKDIR /expat
296+
RUN /expat-$EXPAT_VERSION/configure \
297+
--prefix=/deps \
298+
--host=$ARCH \
299+
--disable-shared \
300+
--without-docbook \
301+
--without-examples \
302+
--without-tests \
303+
CFLAGS="-Os" \
304+
LDFLAGS="-s" \
305+
&& make -j$(nproc) \
306+
&& make install
307+
292308
WORKDIR /gdb
293309
RUN /gdb-$GDB_VERSION/configure \
294310
--host=$ARCH \
311+
--with-libexpat-prefix=/deps \
295312
CFLAGS="-Os -D_WIN32_WINNT=0x502" \
296313
CXXFLAGS="-Os" \
297314
LDFLAGS="-s" \

src/SHA256SUMS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
e316477a914f567eccc34d5d29785b8b0f5a10208d36bbacedcc39048ecfe024 binutils-2.38.tar.xz
22
f4d79c1e8a4bc598cba6ac3c6396004154fdf3131a24ac9d3f1bbd48cd995fa2 busybox-w32-FRP-4621-gf3c5e8bc3.tgz
3+
f79b8f904b749e3e0d20afeadecf8249c55b2e32d4ebb089ae378df479dcaf25 expat-2.4.8.tar.xz
34
62fd634889f31c02b64af2c468f064b47ad1ca78411c45abe6ac4b5f8dd19c7b gcc-12.1.0.tar.xz
45
aaa1223d534c9b700a8bec952d9748ee1977513f178727e1bee520ee000b4f29 gdb-10.2.tar.xz
56
fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2 gmp-6.2.1.tar.xz

0 commit comments

Comments
 (0)