setting command alias through python API in gdb

47 Views Asked by At

I have written a small python script that adds new commands to gdb and for others to use it, they can just source the python file in their ~/.gdbinit, but I would now like to add some useful aliases to those commands.

Right now I've added a README instruction to add those aliases manually in each user's ~/.gdbinit, but wanted to know if there's any better way to just add aliases to the new commands in python itself.

0

There are 0 best solutions below