Previous: , Up: Controlling CGDB   [Contents][Index]


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-u

Move up 1/2 a page.

Ctrl-f
page down

Move down a page.

Ctrl-d

Move down 1/2 a page.

gg

Move to the top of the file dialog.

[<number>]G

Move to the bottom of the file dialog or to a line number within the file dialog.

/

search from current cursor position.

?

reverse search from current cursor position.

n

next forward search.

N

next reverse search.

enter

Select the current file.


Previous: , Up: Controlling CGDB   [Contents][Index]