/mydebugger

This is a Toy Debugger for compiled languages.

Primary LanguageC++MIT LicenseMIT

ToyDebugger

This project is a debugger that target compiled language like C/C++.

It targets ELF binary and Dwarf format for the debug info.

Getting Started

To begin with this project you just could clone it from github.

Prerequisites

To make it work you need:

  • libbfd
  • capstone
  • elf++/dwarf++

Installing

To compile the project:

mkdir build
cd build
cmake ..
make

It will create a binary called mygdb.

How to use this debugger

Launch it:

./mygdb programm_to_debug

Access the helper:

Available command:
        b $addr: set a breakpoint at $addr
        c: Continue to the next breakpoint
        d: Disas from rip value
        d $0xaddr: Disas from 0xaddr
        h: print the helper of commands
        s: Go to next instruction
        p $register: print the value of the $register
        p 0xaddr: print the content at $addr
        l [n]: get [n]  line of the current source code

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details