Using Exception Data on Compaq Tru64 UNIX
If you receive the following error message when you load an executable into TotalView, you may need to compile your program so that exception data is included:
-
Cannot find exception information. Stack backtraces may not be correct.
To provide a complete stack backtrace in all situations, TotalView needs the exception data to be included in the compiled executable. To compile with exception data, you need to use the following options:
cc -Wl,-u,_fpdata_size program.c
where:
-Wl
Passes the arguments that follow to another compilation phase (-W), which in this case is the linker (l). Each argument is separated by a comma (,).
-u
Causes the linker to mark the next argument (_fpdata_size) as undefined.
_fpdata_size
Marks the _fpdata_size variable as undefined, which forces the exception data into the executable.
program.c
Is the name of your program.
Compiling with exception data increases the size of your executable slightly. If you choose not to compile with exception data, TotalView can provide correct stack backtraces in most situations, but not in all situations.