Velkan
Velkan

Reputation: 7602

Can we set keybindings in GDB?

Is it possible to bind a command to a single button in GDB, F12 for example?

(as usual, don't try to sell emacs or find out "what are you trying to do")

Upvotes: 2

Views: 452

Answers (1)

Mark Plotnick
Mark Plotnick

Reputation: 10271

gdb uses the readline library, so you could put the following in ~/.inputrc to bind F12 to the continue command:

"\e[24~":"continue\r"

Upvotes: 2

Related Questions