You can use the Tornado debugger in conjunction with the Rational® Rhapsody® animation
feature in order to debug your application.
About this task
Before using the Tornado debugger, make
sure to compile the generated file using debug flags (normally -g).
To use the Tornado debugger:
Procedure
- In Rational Rhapsody,
connect the application by selecting .
- Download the application by selecting .
- Select ,
or click Run.
- In the Animation toolbar, select Go
Idle (or Go Step several times) so the tRhp task
is created.
Note: You must run the application
before attaching a debugger; otherwise, there are no tasks to which
to attach the debugger.
- In Tornado, start the debugger by selecting .
- Attach the debugger to the main thread (tRhp)
by selecting .
- From the debugger, change directory to the
generated code directory (using the cd command in
the gdb prompt).
- From the debugger, load the symbols of the
executable (using the add-symbol-file command at
the gdb prompt).
Results
Now you can use gdb to
debug the application, set breakpoints, and so on.
Before
quitting animation on Rational Rhapsody,
you must detach the debugger using . Failing to detach the
debugger might block the session once Rational Rhapsody attempts
to unload the image.
Note: Do not download
the executable to the target using the debugger. Rational Rhapsody does
not properly if you use this method.