Specifications

184 www.xilinx.com Embedded System Tools Guide (EDK 6.2i)
1-800-255-7778 UG111 (v1.4) January 30, 2004
Chapter 12: GNU Debugger
R
GDB Command Reference
For help on using mb-gdb, click on Help o Help Topics in the GUI mode
or type “help” in the console mode.
In the GUI mode, to open a console window, click on
View o Console
For a comprehensive online documentation on using GDB, refer to the GNU website.
For information about the mb-gdb Insight GUI, refer to the Red Hat Insight webpage
http://sources.redhat.com/insight.
Table 12-1 briefly describes the commonly used mb-gdb console commands. The
equivalent GUI versions can be easily identified in the mb-gdb GUI window icons. Some
of the commands like info target, monitor info, may be available only in the console mode.
Table 12-1: Commonly Used GDB Console Commands
Command Description
load [program] load the program into the target
b main Set a breakpoint in function main
r Run the program (for the built-in simulator only)
c Continue after a breakpoint, or
Run the program (for the xmd simulator only)
l View a listing of the program at the current point
n Steps one line (stepping over function calls)
s Step one line (stepping into function calls)
stepi Step one assembly line
info reg View register values
info target View the number of instructions and cycles executed (for
the built-in simulator only)
p xyz Print the value of xyz data