26 Commits

Author SHA1 Message Date
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
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
Roddy Rappaport
75bc26180a Moved binutils-gdb configure changes to configure.ac #32 2025-01-22 12:28:22 +02:00
Guy Shimko
9b43b0cf47 build: fix python frozen modules generation
The problem was due to duplicate modules present both in the base frozen
modules and also in the extra modules list file.

This commit should allow us to import gdb and pygments again.
2025-01-20 21:03:32 +02:00
Guy Shimko
a7efcb729e build: delete package dir before redownloading it 2025-01-15 23:43:41 +02:00
Guy Shimko
8baaffdcbf build: always download and extract tars
This caused failures in our ci-cd. Always downloading & extracting the
tars makes sure we will redownload them & extract if the previous
download / extraction was faulty.
2025-01-15 23:43:41 +02:00
Guy Shimko
d978ca9aaf build: added libexpat build support
This allows commands such as "info os files"
previously we had expat support on x86_64 only.
2025-01-10 15:34:56 +02:00
Roddy Rappaport
89f092efb7 Compiling Pygments & dependencies in GDB
Added Pygments to build

This is in order to enable GDB syntax highlighting
2025-01-09 21:20:36 +02:00
Guy Shimko
5359ff1116 build: Allow building gdb with and without python 2024-12-30 23:21:17 +02:00
Guy Shimko
aa49ade8d4 Strip the executables in order to reduce their size 2024-12-25 21:35:03 +02:00
Guy Shimko
1dfe3fa6ca Reduce static-gdb size by reducing python size
Updated the python submodule.
The newer submodule will create smaller static python libraries.
2024-12-25 21:35:03 +02:00
Roddy Rappaport
c44e67540a Added X64 build prefix
There's no real reason to assume the host machine is X64.
2024-12-21 13:50:39 +02:00
Roddy Rappaport
ff0d3ad28f Added -e flag to bash build.sh
We want audible fails
2024-12-21 13:26:37 +02:00
Roddy Rappaport
c86f506e90 Add submodules to build/packages
Using symlinks the submodules are added to appear just like any
downloaded unpacked tar.

Also added a Makefile clean rule to clean the submodules, which
includes Reseting the submodules to the origin branch state,
including ignored files.
2024-12-21 13:26:37 +02:00
Roddy Rappaport
46e8eb22a8 Added static-python and static gdb submodules 2024-12-21 13:26:37 +02:00
Guy Shimko
fa04d3a7a2 gdb with python support integration
This commits enables gdb's python support. In order to make it work, we
had to create a python fork with some patches to the buildsystem, and
also had to patch gdb as well.
2024-12-21 13:26:37 +02:00
Guy Shimko
d55a31bb5e build: build gdb with tui mode enabled
This was acheived by forcing gdb to use our own static libncurses
2024-11-10 23:22:56 +02:00
Guy Shimko
a962fbb441 build: download the ncurses package 2024-11-10 23:22:56 +02:00
Guy Shimko
8dc07deb66 build: add mips & mipsel targets 2024-11-10 22:26:05 +02:00
Guy Shimko
4c9cc100fb build: update gdb to v15.2 2024-10-30 22:15:12 +02:00
Roi Klevansky
fe4ad583ae fix: move all package links to GNU FTP 2024-10-30 20:38:57 +02:00
Roi Klevansky
4cde133d93 build: make build script more verbose 2024-10-29 20:59:46 +02:00
Roi Klevansky
b5e5665dd8 build: add build script for automated building 2024-10-29 20:59:46 +02:00
Roi Klevansky
4347d18af5 build: add script which patches GDB 2024-10-29 20:59:46 +02:00
Roi Klevansky
ab0673611d build: add script for automatically downloading packages 2024-10-29 20:59:46 +02:00