In the GDB I/O buffer, you can use these special Emacs commands in addition to the standard Shell mode commands:
Describe the features of Emacs' GDB Mode. | |||
Execute to another source line, like the GDB step command; also | |||
|
| update the display window to show the current file and location. | |
Execute to next source line in this function, skipping all function | |||
|
| calls, like the GDB next command. Then update the display | |
|
| window to show the current file and location. | |
Execute one instruction, like the GDB stepi command; update | |||
|
| display window accordingly. | |
Execute to next instruction, using the GDB nexti command; | |||
|
| update display window accordingly. | |
Execute until exit from the selected stack frame, like the GDB | |||
|
| finish command. | |
Continue execution of your program, like the GDB continue | |||
|
| command. |
|
|
|
|
|
|
| WARNING! | In Emacs v19, this command is |
|
| ||
|
| ||
Go up the number of frames indicated by the numeric argument | |||
|
| (see section "Numeric Arguments" in The gnu Emacs Manual), like | |
|
| the GDB up command. | |
|
|
|
|
|
| WARNING! | In Emacs v19, this command is |
|
| ||
|
| ||
Go down the number of frames indicated by the numeric | |||
|
| argument, like the GDB down command. | |
|
|
|
|
|
| WARNING! | In Emacs v19, this command is |
|
| ||
|
| ||
Read the number where the cursor is positioned, and insert it at | |||
|
| the end of the GDB I/O buffer. For example, if you wish to | |
|
| disassemble code around an address that was displayed earlier, |
type disassemble; then move the cursor to the address display, and pick up the argument for disassemble by typing
You can customize this further by defining elements of the list
294 Using GDB under gnu Emacs