Skip to content

Latest commit

 

History

History
61 lines (41 loc) · 1.13 KB

README.md

File metadata and controls

61 lines (41 loc) · 1.13 KB

ToyDebugger

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

It targets ELF binary and in the future 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: get the source file and line of the current executed code

Authors

License

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