User manual
GDB SERVER FOR ARM, XSCALE AND CORTEX 
USER MANUAL 
Configuring the Debugger 
GNU GDB Debugger 
Start the GDB server as described in the Configuring the Server section (page 3). The server 
should report a successful connection to the target processor. 
C:\Signum\SigGdbServer>SigGdbServer -cpu iMX31 -reg iMX31 -init 
SigGdbServer Version 1.07 (C) Signum Systems Corp. 2006-2010 
Starting ... 
OK - Connected to the emulator ... 
Found boards/iMX31.par file ... 
OK - Emulation configured using boards/iMX31.par file ... 
OK - Connected to the CPU ... 
OK - CPU initialization script executed ... 
Waiting (romek2, 169.254.81.233):2000 
Start the GDB debugger and execute the “target remote <host>:<port>” command to establish 
a connection with the GDB server, as shown in the following examples. 
Connecting to the server from a remote host computer named “labstation” via port 2000: 
(gdb) target remote labstation:2000 
Connecting to the server on the local machine: 
(gdb) target remote localhost:2000 
The server will report a successful connection. If GDB can read an XML target description from 
a target, the server will load the available register definition files: 
Connected from: (localhost, 127.0.0.1) 
Loading registers from C:\Signum\SigGdbServer\targets\iMX31.def ...OK 
Loading registers from C:\Signum\SigGdbServer\cores\ARM1136J-S.def ...OK 
The following is an example of the initial stage of a typical remote debug session. 
$ arm-elf-gdb x.elf 
GNU gdb 5.3 
Copyright 2002 Free Software Foundation, Inc. 
GDB is free software, covered by the GNU General 
Public License, and you are 
welcome to change it and/or distribute copies of it 
under certain conditions. 
Type "show copying" to see the conditions. 
There is absolutely no warranty for GDB. Type 
"show warranty" for details. 
This GDB was configured as "--host=i686-pc-cygwin - 
-target=arm-elf"... 
(gdb) set remote verbose-resume off 
(gdb) target remote labstation:2000 
Remote debugging using labstation:2000 
main () at x.c:34 
34 a = 0; 
(gdb) load x.elf 
Loading section .text, size 0x1f10 lma 0x8000 
7 










