Skip to content

This is a Toy Debugger for compiled languages.

License

Notifications You must be signed in to change notification settings

Berjou/mydebugger

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

This is a Toy Debugger for compiled languages.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 90.5%
  • CMake 8.9%
  • C 0.6%