Merge pull request #44 from guyush1/fix-gdb-auto-load
Fix gdb auto load
This commit is contained in:
commit
56eef2a483
@ -20,7 +20,7 @@
|
|||||||
<img src="https://img.shields.io/github/contributors-anon/guyush1/gdb-static?color=yellow&style=flat-square" alt="contributors" style="height: 20px;">
|
<img src="https://img.shields.io/github/contributors-anon/guyush1/gdb-static?color=yellow&style=flat-square" alt="contributors" style="height: 20px;">
|
||||||
</a>
|
</a>
|
||||||
<br>
|
<br>
|
||||||
<img src="https://img.shields.io/badge/GDB-v15.2-orange?logo=gnu&logoColor=white&style=flat-square" alt="gdb" style="height: 20px;">
|
<img src="https://img.shields.io/badge/GDB-v16.2-orange?logo=gnu&logoColor=white&style=flat-square" alt="gdb" style="height: 20px;">
|
||||||
<img src="https://img.shields.io/badge/Python-built--in-blue?logo=python&logoColor=white&style=flat-square" alt="python" style="height: 20px;">
|
<img src="https://img.shields.io/badge/Python-built--in-blue?logo=python&logoColor=white&style=flat-square" alt="python" style="height: 20px;">
|
||||||
</h4>
|
</h4>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# Notes about this file - read before proceeding!
|
# Notes about this file - read before proceeding!
|
||||||
|
|
||||||
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 :).
|
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 :).
|
||||||
This rest of the file contains a documentation of the compilation process, in order to help you out.
|
The rest of the file contains a documentation of the compilation process, in order to help you out.
|
||||||
|
|
||||||
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.
|
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.
|
||||||
|
|
||||||
@ -20,7 +20,7 @@ Examples to the <VARIABLES> throughout the script:
|
|||||||
- <COMPILATION_DIR_PATH> - /home/username/projects/libgmp-x.y.z/build-arm/
|
- <COMPILATION_DIR_PATH> - /home/username/projects/libgmp-x.y.z/build-arm/
|
||||||
|
|
||||||
Environment info:
|
Environment info:
|
||||||
- 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!).
|
- 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!).
|
||||||
|
|
||||||
# Compiling gdb statically to the host platform
|
# Compiling gdb statically to the host platform
|
||||||
|
|
||||||
|
@ -442,6 +442,9 @@ function build_gdb() {
|
|||||||
../configure -C --enable-static --with-static-standard-libraries --disable-inprocess-agent \
|
../configure -C --enable-static --with-static-standard-libraries --disable-inprocess-agent \
|
||||||
--enable-tui "$python_flag" \
|
--enable-tui "$python_flag" \
|
||||||
--with-expat --with-libexpat-type="static" \
|
--with-expat --with-libexpat-type="static" \
|
||||||
|
--with-gdb-datadir="/usr/share/gdb" --with-separate-debug-dir="/usr/lib/debug" \
|
||||||
|
--with-system-gdbinit="/etc/gdb/gdbinit" --with-system-gdbinit-dir="/etc/gdb/gdbinit.d" \
|
||||||
|
--with-jit-reader-dir="/usr/lib/gdb" \
|
||||||
"--with-libiconv-prefix=$libiconv_prefix" --with-libiconv-type=static \
|
"--with-libiconv-prefix=$libiconv_prefix" --with-libiconv-type=static \
|
||||||
"--with-gmp=$libgmp_prefix" \
|
"--with-gmp=$libgmp_prefix" \
|
||||||
"--with-mpfr=$libmpfr_prefix" \
|
"--with-mpfr=$libmpfr_prefix" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user