An open API service indexing awesome lists of open source software.

https://github.com/v1bh475u/debugger

An elf debugger implemented using ptrace
https://github.com/v1bh475u/debugger

cpp ptrace

Last synced: 10 months ago
JSON representation

An elf debugger implemented using ptrace

Awesome Lists containing this project

README

          

# MY DEBUGGER
This is my attempt to create a debugger in cpp with the help of external dependencies: linenoise and libelfin.

I have used capstone for disassembling the code.

## Dependencies
- linenoise
- libelfin
- capstone

Install the dependencies in the appropriate directories.
## How to install?
1. Download this repositary.
2. Type the following commands in your terminal:
```zsh
cmake -S . -B build
cmake --buid build
cd build
```
## How to use?
- To run
```
./mydbg
```
- To add breakpoint
```
b
```
- To continue execution
```
c
```
- To see all registers
```
regs dump
```
- To read a particular register
```
regs r
```
- To write in a particular register
```
regs w
- To read a certain address in memory
```
mem r
- To write to a certain address in memory
```
mem w
- To view call stack
```
bt
- To disassemble a function
```
disass
- To exit
```
q
- To execute shell command
```
cmd
- For help
```
help