Как отключить GDB TUI?

11776
user40167

У меня есть этот GDB TUI / макет на. Как вернуться к стандартному виду GDB? Я не могу просто перезапустить GDB, потому что у меня на руке важная обратная трассировка, и пока у меня есть эти дополнительные окна, я не могу хорошо прокручивать основной вид.

16

2 ответа на вопрос

14
jellyfish

Вы можете войти / выйти из режима TUI с помощью одной из следующих комбинаций:

  • Cx Ca
  • Cx a
  • Cx A
Но посмотрите http://sourceware.org/bugzilla/show_bug.cgi?id=15163, это забавный вопрос для склонных к ви. Rhys Ulerich 11 лет назад 3
@RhysUlerich спасибо! Я думаю, что это также упоминалось на http://stackoverflow.com/questions/8953720/cannot-leave-tui-mode-with-ctrl-xa-nor-see-program-output-in-tui-mode, и есть скорее всего, это будет обходной путь в ближайшее время: http://superuser.com/a/927728/128124 Ciro Santilli 新疆改造中心 六四事件 法轮功 8 лет назад 0
5
Ciro Santilli 新疆改造中心 六四事件 法轮功

Beacause of the bug Ulerich mentioned which breaks the mappings if you have vi mode in your .inputrc, I have requested a workaround at https://sourceware.org/ml/gdb/2015-06/msg00009.html and Andrew Burgess replied that he had just submitted a well received patch to add:

tui enable tui disable 

so in future versions we should have commands as an alternative to the shortcuts.

I have later tested this on GDB 8.1 in Ubuntu 18.04 and it worked perfectly.

But then I saw the light and moved from TUI to GDB Dashboard: https://github.com/cyrus-and/gdb-dashboard which is simply more powerful and less buggy.

See also: https://stackoverflow.com/questions/8409540/how-to-close-layout-src-windows-in-gdb