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


3.2 Commands available during GDB mode

When in GDB mode, the user is in command mode or scroll mode. When in command mode, the user is typing in commands to interact with GDB. When in scroll mode, the user can scroll through the GDB output. You can enter scroll mode by typing page up and quit scroll mode by typing q, i or enter.

The commands available in GDB Mode when in command mode are:

cgdbmodekey

Switch back to source window. This is defaulted to the ESC key.

page up

Move up a page and enter scroll mode.

When in command mode, CGDB will pass along any other keys to the readline library. When readline has determined that a command has been received, it alerts CGDB, and a command is then sent to GDB.

The commands available in GDB Mode when in scroll mode are:

cgdbmodekey

Switch back to source window. This is defaulted to the ESC key.

page up

Move up a page.

page down

Move down a page.

Ctrl-u

Move up 1/2 a page.

Ctrl-d

Move down 1/2 a page.

F11
home key
gg

Go to the beginning of the GDB buffer.

F12
end key
G

Go to the end of the GDB buffer.

k
up arrow
Ctrl-p

Move up a line.

j
down arrow
Ctrl-n

Move down a line.

/

search from current cursor position.

?

reverse search from current cursor position.

n

next forward search.

N

next reverse search.

m[a-z]

Set a mark at the cursor position.

'[a-z]

Jump to the corresponding mark.

''

Jump to the last jump location.

'.

Jump to the last line.

q
i
enter

Exit scroll mode.


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