Skip to content

Commit 56eef2a

Browse files
authored
Merge pull request #44 from guyush1/fix-gdb-auto-load
Fix gdb auto load
2 parents a67de84 + fb1c8c0 commit 56eef2a

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<img src="https://img.shields.io/github/contributors-anon/guyush1/gdb-static?color=yellow&style=flat-square" alt="contributors" style="height: 20px;">
2121
</a>
2222
<br>
23-
<img src="https://img.shields.io/badge/GDB-v15.2-orange?logo=gnu&logoColor=white&style=flat-square" alt="gdb" style="height: 20px;">
23+
<img src="https://img.shields.io/badge/GDB-v16.2-orange?logo=gnu&logoColor=white&style=flat-square" alt="gdb" style="height: 20px;">
2424
<img src="https://img.shields.io/badge/Python-built--in-blue?logo=python&logoColor=white&style=flat-square" alt="python" style="height: 20px;">
2525
</h4>
2626

compilation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Notes about this file - read before proceeding!
22

3-
While we have already provided the gdb/gdbserver-15 statically compiled binaries for you, some people might want to compile it without our build scripts, or compile a newer version of gdb in the future :).
4-
This rest of the file contains a documentation of the compilation process, in order to help you out.
3+
While we have already provided the gdb/gdbserver statically compiled binaries for you, some people might want to compile it without our build scripts, or compile a newer version of gdb in the future :).
4+
The rest of the file contains a documentation of the compilation process, in order to help you out.
55

66
NOTE: The compilation guide describes the compilation process in order to create a minimal-working version of gdb. Our build-scripts also provides further capabilites to gdb, such as python and xml support, which are not documented in this file.
77

@@ -20,7 +20,7 @@ Examples to the <VARIABLES> throughout the script:
2020
- <COMPILATION_DIR_PATH> - /home/username/projects/libgmp-x.y.z/build-arm/
2121

2222
Environment info:
23-
- glibc version: 2.39-0ubuntu8.3 (NOTE: When i compiled gdb-15 using an older glibc, such as the one i had in my ubuntu-20.04 machine, i received a segfault in gdb, so the libc version is important!).
23+
- glibc version: 2.39-0ubuntu8.3 (NOTE: When i compiled gdb using an older glibc, such as the one i had in my ubuntu-20.04 machine, i received a segfault in gdb, so the libc version is important!).
2424

2525
# Compiling gdb statically to the host platform
2626

src/compilation/build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,9 @@ function build_gdb() {
442442
../configure -C --enable-static --with-static-standard-libraries --disable-inprocess-agent \
443443
--enable-tui "$python_flag" \
444444
--with-expat --with-libexpat-type="static" \
445+
--with-gdb-datadir="/usr/share/gdb" --with-separate-debug-dir="/usr/lib/debug" \
446+
--with-system-gdbinit="/etc/gdb/gdbinit" --with-system-gdbinit-dir="/etc/gdb/gdbinit.d" \
447+
--with-jit-reader-dir="/usr/lib/gdb" \
445448
"--with-libiconv-prefix=$libiconv_prefix" --with-libiconv-type=static \
446449
"--with-gmp=$libgmp_prefix" \
447450
"--with-mpfr=$libmpfr_prefix" \

0 commit comments

Comments
 (0)