TUI single key mode: how to customize a key?

Luis Machado luis.machado@linaro.org
Fri Oct 18 13:12:00 GMT 2019


Hi,

On 8/14/19 3:01 PM, Aleksey Midenkov wrote:
> Is this customizable? Particularly I don't like 'r' key as it aggressive
> enough to restart a program without a confirmation. And you can just miss a
> row and press 'r' instead of 'f'. So I'd like to remove 'r' hotkey.
> 

No. Unfortunately the keys are hardcoded in gdb/tui/tui.c:

static const struct tui_char_command tui_commands[] = {
   { 'c', "continue" },
   { 'd', "down" },
   { 'f', "finish" },
   { 'n', "next" },
   { 'o', "nexti" },
   { 'r', "run" },
   { 's', "step" },
   { 'i', "stepi" },
   { 'u', "up" },
   { 'v', "info locals" },
   { 'w', "where" },
   { 0, 0 },
};

I don't see a problem with making those configurable. Feel free to send 
a patch for it or a design idea so we can make this work.



More information about the Gdb mailing list