
TRACE32 as GDB Front-End 6 S t a r t i n g T R A C E 3 2
©1989-2014 Lauterbach GmbH
6. 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.
For more information on the space-id refer to the chapter Space-ID.
7. Establish the communication to the gdbserver:
A typical start sequence is shown below (connection via TCP)
Single process mode::
Multi process mode::
The start up can be automated by using the programming language PRACTICE.
SYStem.Option MMUSPACES ON
SYStem.Mode Attach
B:
SYStem.Down
WinCLEAR
SYStem.CPU ARM920
SYStem.PORT 10.1.2.99:2345
SYStem.Mode Attach
Data.LOAD.ELF sieve /NOCODE
Go main
Data.List
ENDDO
; select the Monitor device
; switch the debugger to down state
; clear all windows
; select your target CPU
; define communication parameters
; connect to gdbserver
; load the process symbols
; enter the process
; open source code window
B:
SYStem.Down
WinCLEAR
SYStem.CPU ARM920
SYStem.PORT 10.1.2.99:2345
SYStem.Option MMUSPACES ON
SYStem.Mode Attach
TASK.List
TASK.RUN /bin/sieve
Data.LOAD 0x2bd:0 sieve /NOCODE
Go main
Data.List
ENDDO
; select the Monitor device
; switch the debugger to down state
; clear all windows
; select your target CPU
; define communication parameters
; enable MMUSPACES
; connect to gdbserver
; View the list of processes
; Start process sieve
; Load sieve symbols where 0x2bd is
; the space id of the process sieve
; enter the process
; open source code window
Kommentare zu diesen Handbüchern