bdi
Wind
for Tornado™, BDI2000 (MPC8xx/MPC5xx)
User Manual
42
© Copyright 1997-2007 by ABATRON AG Switzerland
V 1.38
3.4.3 Target Server Setup
Setup the target server as follows:
3.4.4 Debugging with GDB
As soon as the target comes out of reset, BDI initializes it and loads your VxWorks application. If RUN
is selected, the application is immediately started, otherwise only the target PC is set. BDI now waits
for WDB request from the target server running on the host.
After starting the debugger, enter "attach system" at the GDB prompt, do not use the "Attach" menu
entry because the task list cannot be read at this time. If not already suspended, this stops the exe-
cution of application code and the target CPU changes to debug mode.
Remember, every time the application is suspended, the target CPU is freezed. During this time no
hardware interrupts will be processed.
Accessing target resources (e.g. inspecting a variable) is only possible during the time the application
is halted (e.g. cause by breakpoint).
Note:
If you would like to debug code before the VxWorks taskLib has been initialized, enter the GDB com-
mand tasking-off to disable fetching of the thread list (Tornado Release Notes 1.0.1 chapter 6.4
GDB).