gdb-static/README.md
Guy Shimko fe4c0763e8 documentation: split & improve the readme file
This commit splits the readme file into 2 files - the readme which
contains instructions on how to download our latest release, and on how
to use our build scripts in order to quickly build gdb statically. The
second file is a compilation guide that contains explanations on how to
manually compile gdb statically.
2024-11-08 13:02:19 +02:00

1.5 KiB

Repository of static gdb and gdbserver

The statically compiled gdb / gdbserver binaries are avaliable to download under github releases!

link: gdb-static github releases

For manual gdb/gdbserver compilation instructions, have a look at the compilation.md file

Compiling gdb using docker

This repository contains a dockerfile and build scripts to compile gdb and gdbserver statically for multiple architectures. Currently, the supported architectures are:

  • x86_64
  • arm
  • aarch64
  • powerpc (32bit) You can easily expand it to support more architectures by adding the appropriate cross compilers to the dockerfile, and other build scripts.

NOTE: You don't need to interact with the dockerfile directly, as the Makefile will take care of everything for you.

Building for a specific architecture

To build for a specific architecture, you can use the following command:

make build-<ARCH>

For example, to build for arm:

make build-arm

The resulting binaries will be placed under the build/artifacts/ directory. Each architecture will have its own directory under build/artifacts/. For example, the arm architecture will have the following directory structure:

build/
    artifacts/
        arm/
            ...

Building for all architectures

To build for all architectures, you can use the following command:

make build

Cleaning the build

To clean the build, you can use the following command:

make clean