Skip to content

Commit 9a370d2

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

File tree

1 file changed

+118
-32
lines changed

1 file changed

+118
-32
lines changed

README.md

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

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

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

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

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

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.
31+
## Introduction
1832

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

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

23-
To build for a specific architecture, you can use the following command:
2488
```bash
2589
make build-<ARCH>
2690
```
2791

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

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-
```
94+
The resulting binary will be placed in the `build/artifacts/` directory:
95+
96+
```bash
3697
build/
37-
artifacts/
38-
arm/
39-
...
98+
└── artifacts/
99+
└── <ARCH>/
100+
└── ...
40101
```
41102

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

44-
To build for all architectures, you can use the following command:
45112
```bash
46113
make build
47114
```
48115

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

51-
To clean the build, you can use the following command:
52-
```bash
53-
make clean
54-
```
118+
</details>
119+
120+
<a name="contributing_anchor"></a>
121+
## Contributing
122+
123+
- 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+).
124+
125+
- 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+).
126+
127+
## Contributors
128+
129+
<!---
130+
npx contributor-faces --exclude "*bot*" --limit 70 --repo "https://github.com/guyush1/gdb-static"
131+
132+
change the height and width for each of the contributors from 80 to 50.
133+
--->
134+
135+
[//]: contributor-faces
136+
<a href="https://github.com/guyush1"><img src="https://avatars.githubusercontent.com/u/82650790?v=4" title="guyush1" width="80" height="80"></a>
137+
<a href="https://github.com/RoiKlevansky"><img src="https://avatars.githubusercontent.com/u/78471889?v=4" title="RoiKlevansky" width="80" height="80"></a>
138+
<a href="https://github.com/roddyrap"><img src="https://avatars.githubusercontent.com/u/37045659?v=4" title="roddyrap" width="80" height="80"></a>
139+
140+
[//]: contributor-faces

0 commit comments

Comments
 (0)