Skip to content

just simple gdb wrapper for switching between several gdb enhancements

Notifications You must be signed in to change notification settings

2O2L2H/gdb-switcher

Repository files navigation

gdbs : gdb-switcher

Just simple gdb switcher between peda, gef, pwndbg and radare2

Usage

https://asciinema.org/a/3xQ3Sh83JTcsdWOaG7ubMy66T asciicast

1. Select debugger and launch.

$ gdbs executable

[*] Which debugger ?

1 : Legacy GDB
2 : peda
3 : gef
4 : pwndbg
5 : radare2

Select {1,2,3,4,5}

[+] gdb-switch => debugger
[+] debugger execution
Reading symbols from ./executable...done.

debugger$

2. Just configure debugger and execute gdb later.

$ gdbs

[*] Which debugger ?

1 : Legacy GDB
2 : peda
3 : gef
4 : pwndbg
5 : radare2
2
[+] gdb-switch => peda

$ ❯ gdb -q ./executable
Reading symbols from ./executable...(no debugging symbols found)...done.
gdb-peda$ 

Environment

Bash in Ubuntu

Install

1. Clone

Clone gdb-switcher repo.

$ git clone https://github.com/2O2L2H/gdb-switcher.git

2. (Optional) Install debugger

Install debugger only if those are not installed before.

$ ./install.sh

3. Configuration

The script adds gdbs() function in ~/.bashrc. If you have your own configuration, add your config in ~/.gdbinit-my.

$ ./setup.sh

Uninstall

Just delete the added function gdbs() at the end of ~/.bashrc.

1. Check ~/.gdbinit

2. Remove function gdbs() in ~/.bashrc.

# gdbs : gdb-switcher
function gdbs() {
      echo -e "\n[*] Which debugger ?"
...
}

About

just simple gdb wrapper for switching between several gdb enhancements

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages