How to Use DWARF

Users can ask the compilers to generate both .dbg files and DWARF debug information. This is recommended for users who have utilities which read the debug information in the object files as well as for users who use both the MULTI Debugger along with other source debuggers. To generate both .dbg files and DWARF debug information in an ELF environment, select Output DWARF on ELF targets in the Advanced Options window, or enter -dwarf when using the command line driver.

By default, only the .dbg file is generated. However, if -dwarf is specified, both DWARF and .dbg files are generated. This mode is provided for compatibility with third party tools that read DWARF debug information. Even if -dwarf is specified, only the .dbg files are actually used by MULTI to debug the program. Use of the -dwarf option will not improve debugging in any way and will slow down assembly and link-time by increasing the size of assembly and object files significantly.


Previous

Next



Copyright © 1999, Green Hills Software. All rights reserved.