Compare commits

..

8 Commits

Author SHA1 Message Date
Guy Shimko
56eef2a483
Merge pull request #44 from guyush1/fix-gdb-auto-load
Fix gdb auto load
2025-02-10 23:56:42 +02:00
Guy Shimko
fb1c8c064b Updated README and compilation to gdb-16 2025-02-10 00:25:35 +02:00
Guy Shimko
0aef35466f Fix gdb debug script auto-load via explicit data&debug configuration
The problem was that our default gdb datadir and debugdir had
non-standard paths, due to some unknown configuration detection.

In order to fix it, we now pass the standard paths via the --with-gdb-datadir & --with-separate-debug-dir variables.
I also set --with-jit-reader-dir, --with-system-gdbinit and --with-system-gdbinit-dir path to be the standard path as well.
2025-02-10 00:24:32 +02:00
Guy Shimko
a67de84e98
Merge pull request #43 from guyush1/fix-python-modules-on-init
Initializing gdb modules on Python init #41
2025-02-07 15:41:52 +02:00
Guy Shimko
6332ea0b03
Merge pull request #42 from guyush1/update-to-gdb-16.2
Update binutils to our static branch for gdb-16.2
2025-02-07 15:39:16 +02:00
Roddy Rappaport
cd70d531cf Initializing gdb modules on Python init #41
- Added the frozen_utils library to Python in order to expose the
  modules and submodules that were frozen with Python.
- Using frozen_utils in order to find the modules that GDB usually
  imports on init and importing them.
2025-02-07 12:15:01 +02:00
Guy Shimko
f23c33bdd3 Update binutils to our static branch for gdb-16.2
Almost no conflicts were encountered :)
2025-02-05 23:29:17 +02:00
Guy Shimko
6a31199eff
Merge pull request #40 from guyush1/improve-compilation-mdfile
docs: improve compilation manual documentation
2025-02-04 23:47:25 +02:00
5 changed files with 9 additions and 6 deletions

View File

@ -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;">
</a>
<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;">
</h4>

View File

@ -1,7 +1,7 @@
# 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 :).
This rest of the file contains a documentation of the compilation process, in order to help you out.
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 :).
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.
@ -20,7 +20,7 @@ Examples to the <VARIABLES> throughout the script:
- <COMPILATION_DIR_PATH> - /home/username/projects/libgmp-x.y.z/build-arm/
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

View File

@ -442,6 +442,9 @@ function build_gdb() {
../configure -C --enable-static --with-static-standard-libraries --disable-inprocess-agent \
--enable-tui "$python_flag" \
--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-gmp=$libgmp_prefix" \
"--with-mpfr=$libmpfr_prefix" \

@ -1 +1 @@
Subproject commit 35df1de1932b2e12148656e6525b85cfcbfd165e
Subproject commit 25f97ccb7ff1a9d7bd0e25535d749acf6e1a87be

@ -1 +1 @@
Subproject commit 74ab74654b867a6e1c3b2af3ccf6b7b74b0e9a9b
Subproject commit f38630702ca74b512256880f5e80130a8733a0b5