Connect GDB to the GDB Agent as described
in Section 4.6.3.2.1 and load a program to the device.
To set a breakpoint on a function, type
break function name. By default this sets a software breakpoint (see Section 4.7.2). Use hbreak to
set a hardware-assisted breakpoint, which speeds up debugging. A limited number of
hardware breakpoints are available; the number is dependent on your device.
To set a breakpoint on a source line,
type break filename:line.
When you run a program, program execution
stops at the entry to the specified function or the specified line.