Skip to content

v1bh475u/Debugger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MY DEBUGGER

This is my attempt to create a debugger in cpp with the help of external dependencies: linenoise and libelfin.
Currently, one can set breakpoints and continue execution, read and write any register and also memory

Dependencies

  • linenoise
  • libelfin

Install the dependencies in the appropriate directories.

How to install?

  1. Download this repositary.
  2. Type the following commands in your terminal:
    cmake CMakeLists.txt
    make

How to use?

  • To run
    ./mydbg <your_program>
    
  • To add breakpoint
    b <offset_of_your_breakpoint>
    
  • To continue execution
    c
    
  • To see all registers
    regs dump
    
  • To read a particular register
    regs r <reg_name>
    
  • To write in a particular register
    regs w <reg_name> <data_to_be_written_in_hexadecimal_format>
    
  • To read a certain address in memory
    mem r <addr_offset>
    
  • To write to a certain address in memory
    mem w <addr_offset> <data_to_be_written_in_hexadecimal_format>
    
  • To view call stack
    sc
    
  • To exit
    q
    
  • To execute shell command
    cmd <command>
    
  • For help
    help
    

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published