12 DEBUGGING NOTES

This chapter contains the following sections:

Debugging Assembly Language

Debugging Multiple Programs

Here are a few notes about debugging in special situations:

12.1 Debugging Assembly Language

You may debug assembly language programs or modules much as you do C source. The s, S and si commands single step through the assembly source. You may place code breakpoints on assembly language instructions with the bi command.

For additional information on debugging assembly code, see $autosrc, $mixedasm and $symbols in the Reserved Special Variables table in section 3.4.

There is a restriction on debugging assembly language code:

12.2 Debugging Multiple Programs

You probably have only one linked and located absolute object file that describes the whole system load. However, for various reasons, you may want to build your system load by linking and locating into several files. The debugger can handle the symbols from only one load module in one absolute object file at a time. Consequently, if there are several absolute files or several load modules within one absolute file, you will have to change the context from one to another explicitly. Use the N command or the Load Symbolic Debug Info dialog to load the appropriate symbols. This does not disturb the state of the target system.

You can also download the image part of another absolute object file (using the dn command), without leaving the debugger.


Copyright © 2003 Altium BV