Add your custom commands into gdb-peda in a easy way.
- Follow "Installation" steps.
- Create a file in
~/custom-addons-peda/addons/
folder. - Create a class in that file.
- Inside that class create a function.
- Save.
- Open gdb and use newly created commands.
Custom commands are displayed in gdb when it's launched.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
========= Dext3r98 Addon =========
Loaded commands: MyPedaCommand, hacktheplanet
==================================
Reading symbols from uaf...(no debugging symbols found)...done.
gdb-peda$
def MyAwesomeFunction(self,args*):
.....
return True
Will be invoked in gdb as:
gdb-peda$ MyAwesomeFunction args ...
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details