When using GDB, “ref” command displays source code which is quite useful. But I can’t use short key like up arrow when being in this mode. Is there a way to turn off this function?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
refreshcommand entersTUImode.If you do
info win, you’ll see something like:The cursor keys scroll the window that has focus, which is why they reposition source but don’t allow you to recall previous commands at the
(gdb)prompt. So switch focus back to the prompt withfocus cmd, and voila: you can use arrow keys as if you were outside theTUImode.You can also leave the
TUImode completely withC-x C-a,C-x aorC-x Akeystroke. Documentation for TUI.