gdb 7.0-ubuntu STR: * Start debugging $ gdb a.out * Switch to vi mode (gdb) <ctrl+alt+j> * Start running, pause execution, then switch to TUI mode: (gdb) r (gdb) <ctrl+c> (gdb) layout next * Use a vi-mode shortcut, e.g. (gdb) asdf <esc> <h> Expected results: The cursor moves left. Actual results: The cursor doesn't move left, because we're not in vi-mode.
Confirmed 7.5. The problem comes from the TUI initialization that uses the default readline keymap to setup specific key bindings. Once we switch to TUI mode, we set our own keymap which comes from Emacs. The TUI should manager a vi keymap override as it does for emacs and detect which keymap is installed. There is the issue of switching keymap when the TUI is active.
I tried this and as far as I can tell it works for me in git master gdb (8.3). It would be nice if someone else could verify.
No responses.