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
- Host: GitHub
- URL: https://github.com/v1bh475u/debugger
- Owner: v1bh475u
- Created: 2024-05-19T08:11:12.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-27T12:12:35.000Z (over 1 year ago)
- Last Synced: 2025-06-05T05:24:02.356Z (about 1 year ago)
- Topics: cpp, ptrace
- Language: C++
- Homepage:
- Size: 3.74 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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