Skip to content

Commit a681a48

Browse files
committed
ref: redone README.md
1 parent bdb2267 commit a681a48

File tree

1 file changed

+116
-32
lines changed

1 file changed

+116
-32
lines changed

README.md

Lines changed: 116 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,138 @@
1-
# Repository of static gdb and gdbserver
1+
<h1 align="center">
2+
<source media="(prefers-color-scheme: dark)" srcset="./.github/assets/gdb-static_logo_dark.svg">
3+
<source media="(prefers-color-scheme: light)" srcset="./.github/assets/gdb-static_logo_light.svg">
4+
<img src="./.github/assets/gdb-static_logo_light.svg" alt="logo">
5+
</h1>
26

3-
## **The statically compiled gdb / gdbserver binaries are avaliable to download under github releases!**
7+
<p align="center">
8+
<i align="center">Frozen static builds of everyone's favorite debugger!🧊</i>
9+
</p>
410

5-
link: [gdb-static github releases](https://github.com/guyush1/gdb-static/releases)
11+
<h4 align="center">
12+
<a href="https://github.com/guyush1/gdb-static/releases/latest">
13+
<img src="https://img.shields.io/github/v/release/guyush1/gdb-static?style=flat-square" alt="release" style="height: 20px;">
14+
<a href="https://github.com/guyush1/gdb-static/actions/workflows/pr-pipeline.yaml">
15+
<img src="https://img.shields.io/github/actions/workflow/status/guyush1/gdb-static/pr-pipeline.yaml?style=flat-square&label=pipeline" alt="continuous integration" style="height: 20px;">
16+
</a>
17+
<a href="https://github.com/guyush1/gdb-static/graphs/contributors">
18+
<img src="https://img.shields.io/github/contributors-anon/guyush1/gdb-static?color=yellow&style=flat-square" alt="contributors" style="height: 20px;">
19+
</a>
20+
<br>
21+
<img src="https://img.shields.io/badge/GDB-v15.2-orange?logo=gnu&logoColor=white&style=flat-square" alt="gdb" style="height: 20px;">
22+
<img src="https://img.shields.io/badge/Python-built--in-blue?logo=python&logoColor=white&style=flat-square" alt="python" style="height: 20px;">
23+
</h4>
624

7-
## For manual gdb/gdbserver compilation instructions, have a look at the compilation.md file
25+
## TL;DR
826

9-
## Compiling gdb using docker
27+
- **Download**: Get the latest release from the [releases page](https://github.com/guyush1/gdb-static/releases/latest).
1028

11-
This repository contains a dockerfile and build scripts to compile gdb and gdbserver statically for multiple architectures.
12-
Currently, the supported architectures are:
13-
- x86_64
14-
- arm
15-
- aarch64
16-
- powerpc (32bit)
17-
You can easily expand it to support more architectures by adding the appropriate cross compilers to the dockerfile, and other build scripts.
29+
## Introduction
1830

19-
NOTE: You don't need to interact with the dockerfile directly, as the Makefile will take care of everything for you.
31+
Who doesn't love GDB? It's such a powerful tool, with such a great package.
32+
But sometimes, you run into one of these problems:
33+
- You can't install GDB on your machine
34+
- You can't install an updated version of GDB on your machine
35+
- Some other strange embedded reasons...
2036

21-
### Building for a specific architecture
37+
This is where `gdb-static` comes in! We provide static builds of `gdb` (and `gdbserver` of course), so you can run them on any machine, without any dependencies!
38+
39+
<details open>
40+
<summary>
41+
Features
42+
</summary> <br />
43+
44+
- **Static Builds**: No dependencies, no installation, just download and run!
45+
- **Latest Versions**: We keep our builds up-to-date with the latest versions of GDB.
46+
- **Builtin Python**: Our builds come with Python support built-in.
47+
- **Wide Architecture Support**: We support a wide range of architectures:
48+
- aarch64
49+
- arm
50+
- mips
51+
- mipsel
52+
- powerpc
53+
- x86_64
54+
55+
</details>
56+
57+
## Usage
58+
59+
To get started with `gdb-static`, simply download the build for your architecture from the [releases page](https://github.com/guyush1/gdb-static/releases/latest), extract the archive, and copy the binary to your desired platform.
60+
61+
You may choose to copy the `gdb` binary to the platform, or use `gdbserver` to debug remtoely.
62+
63+
## Development
64+
65+
Alternatively, you can build `gdb-static` from source. To do so, follow the instructions below:
66+
67+
<details open>
68+
<summary>
69+
Pre-requisites
70+
</summary> <br />
71+
To be able to build `gdb-static`, you will need the following tools installed on your machine:
72+
73+
###
74+
75+
- Docker
76+
- Git
77+
</details>
78+
79+
<details open>
80+
<summary>
81+
Building for a specific architecture
82+
</summary> <br />
83+
84+
To build `gdb-static` for a specific architecture, run the following command:
2285

23-
To build for a specific architecture, you can use the following command:
2486
```bash
2587
make build-<ARCH>
2688
```
2789

28-
For example, to build for arm:
29-
```bash
30-
make build-arm
31-
```
90+
Where `<ARCH>` is the architecture you want to build for.
3291

33-
The resulting binaries will be placed under the `build/artifacts/` directory.
34-
Each architecture will have its own directory under `build/artifacts/`. For example, the arm architecture will have the following directory structure:
35-
```
92+
The resulting binary will be placed in the `build/artifacts/` directory:
93+
94+
```bash
3695
build/
37-
artifacts/
38-
arm/
39-
...
96+
└── artifacts/
97+
└── <ARCH>/
98+
└── ...
4099
```
41100

42-
### Building for all architectures
101+
</details>
102+
103+
<details open>
104+
<summary>
105+
Building for all architectures
106+
</summary> <br />
107+
108+
To build `gdb-static` for all supported architectures, run the following command:
43109

44-
To build for all architectures, you can use the following command:
45110
```bash
46111
make build
47112
```
48113

49-
### Cleaning the build
114+
The resulting binary will be placed in the `build/artifacts/` directory.
50115

51-
To clean the build, you can use the following command:
52-
```bash
53-
make clean
54-
```
116+
</details>
117+
118+
<a name="contributing_anchor"></a>
119+
## Contributing
120+
121+
- Bug Report: If you see an error message or encounter an issue while using gdb-static, please create a [bug report](https://github.com/guyush1/gdb-static/issues/new?assignees=&labels=bug&title=%F0%9F%90%9B+Bug+Report%3A+).
122+
123+
- Feature Request: If you have an idea or if there is a capability that is missing and would make `gdb-static` more robust, please submit a [feature request](https://github.com/guyush1/gdb-static/issues/new?assignees=&labels=enhancement&title=%F0%9F%9A%80+Feature+Request%3A+).
124+
125+
## Contributors
126+
127+
<!---
128+
npx contributor-faces --exclude "*bot*" --limit 70 --repo "https://github.com/guyush1/gdb-static"
129+
130+
change the height and width for each of the contributors from 80 to 50.
131+
--->
132+
133+
[//]: contributor-faces
134+
<a href="https://github.com/guyush1"><img src="https://avatars.githubusercontent.com/u/82650790?v=4" title="guyush1" width="80" height="80"></a>
135+
<a href="https://github.com/RoiKlevansky"><img src="https://avatars.githubusercontent.com/u/78471889?v=4" title="RoiKlevansky" width="80" height="80"></a>
136+
<a href="https://github.com/roddyrap"><img src="https://avatars.githubusercontent.com/u/37045659?v=4" title="roddyrap" width="80" height="80"></a>
137+
138+
[//]: contributor-faces

0 commit comments

Comments
 (0)