Professional Documents
Culture Documents
Troubleshooting ......................................................................................................................
FAQ ...........................................................................................................................................
Background .............................................................................................................................
Space ID
10
10
11
11
SYStem.Option BigEndian
SYStem.Option DisMode
SYStem.Option MMUSPACES
SYStem.Option GDBEXTENDED
11
12
12
13
13
13
14
14
TASK.RUN
14
TASK.KILL
14
14
15
TASK.COPYUP
15
TASK.COPYDOWN
15
SYStem.Option GDBNONSTOP
SYStem.PORT
SYStem.GDBFILE
SYStem.GDBLibPath
SYStem.GDBSIGnal
TASK.List
TASK.SELect
TASK.Attach
TASK.DETACH
TASK.Go
15
TASK.Break
15
Support .....................................................................................................................................
16
Compiler
16
ARM
16
I386
16
MIPS
17
PPC
17
XScale
18
Products ...................................................................................................................................
20
Product Information
20
Order Information
20
Operation Theory
The TRACE32 GDB front-end is a software debugger solution which communicates with a gdbserver/
gdbstub or any other application using the Remote Serial Protocol (RSP) over ethernet or RS232.
GDB Server
The gdbserver is a small program provided by GNU, which allows you to debug an application on a remote
machine. The gdbserver can start a new process or attach to a running one and provide debugging
functionality using mechanisms provided by the operating system as the Process Trace (ptrace) for Linux.
It is recommended to use gdbserver version 6.2 or newer. Some of the functionality described in this manual
as multi-process debugging and non-stop mode are only supported with gdbserver version 7.1 or newer. To
get your gdbserver version, type in the terminal
gdbserver --version
If nothing is printed, then your gdbserver has a version older than 6.2.
Starting TRACE32
To start TRACE32 as GDB front-end, edit your config.t32 file and insert the statement:
PBI=GDB
Operation Theory
A typical TRACE32 GDB front-end configuration file in a windows environment looks similar to this (please
take care of the blank lines!):
PBI=GDB
OS=
SYS=.
TMP=.
SCREEN=
FONT=SMALL
; Printer settings
PRINTER=WINDOWS
Starting TRACE32
COMM may be either a serial port (e.g. /dev/ttyS0 or COM1) or a TCP connection (HOST:PORT).
Using the --attach option, the gdbserver attaches to the process with the id PID.
The --multi option start the gdbserver in multi-process mode. This option is not supported by all
gdbserver versions.
2.
3.
4.
or:
SYStem.PORT target_ip:port
Starting TRACE32
5.
If using the gdbserver in muti process mode, enable MMUSPACES. Processes of Linux may
reside virtually on the same address. To distinguish those addresses, a debugger uses an
additional space ID, that specifies, to which virtual memory space an address refers. The
following command enables this additional space ID.
SYStem.Option MMUSPACES ON
For more information on the space ID refer to the chapter Space ID.
6.
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
Starting TRACE32
Troubleshooting
No information available until yet.
FAQ
No information available
Troubleshooting
Background
Space ID
Space ID
A breakpoint to main in the process helloloop can be set with one of the following commands:
Break.Set \\helloloop\global\main
Break.Set 0x91:0x83d4
Break.Set 145.:0x83d4
Please be aware, that process-specific breakpoints are set, as soon as the process is started by Go.
Background
SYStem.CPU
Format:
SYStem.CPU <type>
SYStem.Mode
Format:
SYStem.Mode <mode>
<mode>:
Down
Attach
Up
Default: Down
Down
Attach
Up
The processes currently debugged are killed and the connection is cut. If extended mode is
disabled, the gdbserver is also terminated, otherwise, the gdbserver waits for a new
connection.
SYStem.CpuAccess
Format:
Default: Denied. .
Enable
Denied
Nonstop
Lock all features of the debugger that affect the run-time behavior.
If SYStem.CpuAccess Enable is set, it is possible to read from memory, to write to memory and to set
software breakpoints while the CPU is executing the program. To make this possible, the program execution
is shortly stopped by the debugger. A red S in the state line of the TRACE32 screen warns you, that the
program is no longer running in real-time.
If specific windows, that display memory or variables should be updated while the program is running select
the memory class E: or the format option %E.
Data.dump E:0x100
Var.View %E first
SYStem.Option BigEndian
Format:
Default: OFF.
This option selects the byte ordering mechanism.
10
SYStem.Option DisMode
Format:
This command specifies the selected disassembler. Different options are available depending on the used
architecture. Please refer to your Processor Architecture Manual (e.g. debugger_arm.pdf for ARM) for more
details.
AUTO
The information provided by the compiler output file is used for the
disassembler selection. If no information is available it has the same behavior
as the option ACCESS.
SYStem.Option MMUSPACES
Format:
Default: OFF.
Enables the usage of the MMU to support multiple address spaces. The command should not be used if
only one translation table is used. Enabling the option will extend the address scheme of the debugger by a
16 bit memory space identifier. You should activate the option first, and then load the symbols.
SYStem.Option GDBEXTENDED
Format:
11
SYStem.Option GDBNONSTOP
Format:
SYStem.PORT
Format:
SYStem.PORT <settings>
<settings>:
COM1 BAUD=9600
HOST:PORT
Set the communication parameters. You can use a serial or a TCP communication.
SYStem.PORT COM1 baud=9600
SYStem.PORT 10.1.2.99:2345
12
SYStem.GDBFILE
Format:
SYStem.GDBLibPath
Format:
SYStem.GDBSIGnal
Format:
<mode>:
<signum>:
signal number
This command define the gdbserver/TRACE32 behavior when the application sends the signal signum.
STOP
NOSTOP
PASS
Allow the program to see this signal; the program can handle the signal, or
else it may terminate if the signal is fatal and not handled.
NOPASS
NOPRINT
No message is printed.
13
TASK.List
Format:
TASK.List
TASK.SELect
Format:
TASK.SELect <id>
TASK.RUN
Format:
TASK.RUN <process>
TASK.KILL
Format:
TASK.KILL <id>
TASK.Attach
Format:
TASK.Attach <pid>
14
TASK.DETACH
Format:
TASK.DETACH <pid>
TASK.COPYUP
Format:
TASK.COPYDOWN
Format:
TASK.Go
Format:
TASK.Go <id>
TASK.Break
Format:
TASK.Break <id>
15
Support
Compiler
ARM
Language
Compiler
C
C
C
C
C
CARM
ARMCC
ARMCC
REALVIEW-MDK
GCCARM
C
C
C
C
C
C
C
C
C++
C++
C++
C++
C++
C++
C++
C++
C/C++
C/C++
C/C++
Company
Option
Comment
ELF/DWARF
AIF
ELF/DWARF
ELF/DWARF2
COFF/STABS
ELF/DWARF2
ELF/DWARF2
ELF/DWARF2
ELF/DWARF ARM7
ELF/DWARF
COFF
COFF
ELF
ELF/DWARF2
ELF/DWARF2
COFF/STABS
EXE/STABS
ELF/DWARF2
ELF/DWARF2
EXE/CV5
WindowsCE
ELF/DWARF
Mach-O
ELF/DWARF
ELF/DWARF2
I386
16
Support
Language
Compiler
Company
Option
GNU-C
DBX
GNU-C
C
C
C
C
GCC386
IC386
IC286
MCC386
C
C
C
C
C
C
C
C++
MSVC-1.5
MSVC
MSVC
MSVC/CSI
SCO-UNIX-CC
HC386
HIGHC
BORLAND-C
C++
ORGANON
C++
GNU-C++
C++
C++
C++
MSVC
HC386
HIGH-C++
Free Software
Foundation, Inc.
Free Software
Foundation, Inc.
Greenhills Software Inc.
Intel Corporation
Intel Corporation
Mentor Graphics
Corporation
Microsoft Corporation
Microsoft Corporation
Microsoft Corporation
Microsoft Corporation
SCO
Synopsys, Inc
Synopsys, Inc
Borland Software
Corporation
CAD-UL
ElectronicServices
GmbH
Free Software
Foundation, Inc.
Microsoft Corporation
Synopsys, Inc
Synopsys, Inc
Language
Compiler
Company
Option
C
C++
C++
TCC
SDE
GCC
IEEE
ELF/STABS
ELF/DWARF
C++
GREEN-HILLSC++
TASKING
Algorithmics
Free Software
Foundation, Inc.
Greenhills Software Inc.
Comment
ELF/DWARF2
COFF
OMF-386
OMF-286
EOMF-386
EOMF-386
Pharlap ETS
EXE/CV
OMF-386/CV SSI Link386
EOMF-386
COFF
OMF386/SPF
ELF/DWARF
EXE/BC5
OMF386++
DBX
EXE/CV4
OMF/SPF
ELF/DWARF
MIPS
Comment
ELF/DWARF
PPC
17
Support
Language
Compiler
Company
Option
ADA
GNAT
ELF/DWARF
C
C
CXPPC
XCC-V
C
C
GREEN-HILLS-C
MCCPPC
C
C
C
C
C
C
C
C++
CC
ULTRA-C
HIGH-C
DCPPC
D-CC
D-CC
D-CC
GCC
C++
C++
GREEN-HILLSC++
CCCPPC
Free Software
Foundation, Inc.
Cosmic Software
GAIO Technology Co.,
Ltd.
Greenhills Software Inc.
Mentor Graphics
Corporation
NXP Semiconductors
Radisys Inc.
Synopsys, Inc
TASKING
Wind River Systems
Wind River Systems
Wind River Systems
Free Software
Foundation, Inc.
Greenhills Software Inc.
C++
C++
C++
C++
C/C++
MSVC
HIGH-C++
D-C++
GCCPPC
GCC
C/C++
GCC
CODEWARRIOR
GCC
JAVA
FASTJ
Mentor Graphics
Corporation
Microsoft Corporation
Synopsys, Inc
Wind River Systems
Wind River Systems
HighTec EDV-Systeme
GmbH
NXP Semiconductors
Free Software
Foundation, Inc.
Wind River Systems
Language
Compiler
Company
Option
C
C
C
ARMCC
ARMCC
GCCARM
AIF
ELF/DWARF
COFF/STABS
GCCARM
C
C
GREENHILLS-C
ICCARM
ARM Ltd.
ARM Ltd.
Free Software
Foundation, Inc.
Free Software
Foundation, Inc.
Greenhills Software Inc.
IAR Systems AB
Comment
ELF/DWARF
SAUF
ELF/DWARF
ELF/DWARF
XCOFF
ROF
ELF/DWARF
ELF/DWARF
IEEE
COFF
ELF/DWARF
ELF/DWARF
ELF/DWARF
ELF/DWARF
EXE/CV5
ELF/DWARF
ELF/DWARF
ELF/STABS
ELF/DWARF
WindowsCE
ELF/DWARF
ELF/DWARF
ELF/DWARF
XScale
Comment
ELF/DWARF2
ELF/DWARF2
ELF/DWARF2
18
Support
Language
Compiler
C
C
C
C++
C++
HIGH-C
TI-C
GNU-C
ARM-SDT-2.50
GCCARM
C++
C++
C++
C++
C++
C/C++
Company
Synopsys, Inc
Texas Instruments
Wind River Systems
ARM Ltd.
Free Software
Foundation, Inc.
GNU
Free Software
Foundation, Inc.
GCCARM
Free Software
Foundation, Inc.
GREENHILLS-C++ Greenhills Software Inc.
MSVC
Microsoft Corporation
HIGH-C++
Synopsys, Inc
VX-ARM
TASKING
Option
Comment
ELF/DWARF
COFF
COFF
ELF/DWARF2
COFF/STABS
EXE/STABS
ELF/DWARF2
ELF/DWARF2
EXE/CV5
WindowsCE
ELF/DWARF
ELF/DWARF2
19
Support
Products
Product Information
OrderNo Code
Text
LA-3741
JTAG-HEXAGON
LA-3741A
JTAG-HEXAGON-A
supports Hexagon
Multicore debugging included
Extension applicable to the following debug cables
(purchased separately):
for LA-3743 (JTAG Debugger for Cortex-A5x)
for LA-7746 (JTAG Debugger for ARM7)
for LA-7742 (JTAG Debugger for ARM9)
for LA-7744 (JTAG Debugger for ARM10)
for LA-7765 (JTAG Debugger for ARM11)
for LA-7843 (JTAG Debugger for Cortex-A/-R (ARMv7))
for LA-7844 (JTAG Debugger for Cortex-M)
please add the serial number of the base dongle
to your order
LA-8897D
FRONTEND-HEXAGON-UD
LA-8897L
FRONTEND-HEXAGON-FL
Order Information
Order No.
Code
Text
LA-3741
LA-3741A
LA-8897D
JTAG-HEXAGON
JTAG-HEXAGON-A
FRONTEND-HEXAGON-UD
20
Products
Order No.
Code
Text
LA-8897L
FRONTEND-HEXAGON-FL
Additional Options
LA-7765A JTAG-ARM11-A
LA-7746A JTAG-ARM7-A
LA-7742A JTAG-ARM9-A
LA-3743A JTAG-ARMV8-A-A
LA-7843A JTAG-CORTEX-A/R-A
LA-7844A JTAG-CORTEX_M-A
21
Products