• Stars
    star
    152
  • Rank 244,685 (Top 5 %)
  • Language
    C
  • License
    GNU General Publi...
  • Created over 5 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

$ make

or even

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

And run it by

$ ./gdbserver 127.0.0.1:1234 a.out

or you can attach an existed process

$ ./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