Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have this GDB TUI/layout on. How to return to default GDB view? I can't just restart GDB because I have important backtrace on my hand and as long as I have these extra windows I can't scroll well on the basic view.

share|improve this question

you can enter / leave the TUI mode with one of this combination:

  • C-x C-a
  • C-x a
  • C-x A
share|improve this answer
2  
But see sourceware.org/bugzilla/show_bug.cgi?id=15163, which is a fun gotcha for the vi-inclined. – Rhys Ulerich Feb 20 '13 at 16:54
    
@RhysUlerich thanks! I think that was also mentioned at stackoverflow.com/questions/8953720/… , and there is likely to be a workaround soon: superuser.com/a/927728/128124 – Ciro Santilli 巴拿馬文件 六四事件 法轮功 Jun 14 '15 at 11:13

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.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .