Next: , Previous: GDB Mode, Up: Controlling CGDB


3.3 Commands available during the file dialog mode

The file dialog is primarily used to allow the user to find and open a source file that the program they are debugging is made up of. The file dialog will be full screen, and will list each file that the debugged program is made up of. A usual instance of the file dialog would be to open it up from the source window using the o key, and then to search for the file of interest. If you are looking for foo.c type /foo.c, press enter once to finish the regular expression and again to select the file.

The commands available in the file dialog are:

q
Will exit the file dialog, and return to the source window.
k
up arrow
Move up a line.
j
down arrow
Move down a line.
h
left arrow
Move left a line.
l
right arrow
Move right a line.
Ctrl-b
page up
Move up a page.
Ctrl-f
page down
Move down a page.
/
search from current cursor position.
?
reverse search from current cursor position.
n
next forward search.
N
next reverse search.
enter
Select the current file.