Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
G

gdbserver

> 开发工具
Open source

A tiny debugger implement the GDB Remote Serial Protocol. Can work on i386, x86_64, ARM and PowerPC.

184 stars0 likes0 views
WebsiteGitHub

About

A tiny debugger implement the GDB Remote Serial Protocol. Can work on i386, x86_64, ARM and PowerPC.

This project creates a tiny debugger based on ptrace. It implements the GDB Remote Serial Protocol, works like a real gdbserver and can be connected by gdb client.

Features

  • No extra dependencies. Only repies on glibc
  • Support basic debugging functions and some advance features, such as Host I/O and debugging multithreaded programs
  • Support multiple architectures (i386, x86_64, ARM and PowerPC)

Usage

You can compile it by

bash
$ make

or even

bash
$ gcc -std=gnu99 *.c -o gdbserver

And run it by

bash
$ ./gdbserver 127.0.0.1:1234 a.out

or you can attach an existed process

bash
$ ./gdbserver --attach 127.0.0.1:1234 23456

Then you can run normal gdb (Only GDB 8.x is tested) and connect it by

target remote 127.0.0.1:1234

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Carmdebuggergdbgdbserver

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具