|
|
HP/DDE Debugger User's Guide: HP 9000 Series 700/800 Computers > Chapter 8 Debugging in Special SituationsExamining Core Files |
|
You can use the debugger to diagnose some run-time errors after a program has aborted and produced a core file. The operating system generates a core file when a signal is not caught by the program. The core file records the state of the program at the time that the fatal error occurred. You can use the debugger to:
You cannot modify or execute the program. When attaching the debugger to a core file on HP-UX systems, you must supply both the name of the core file (usually core) and the name of the program object module that was being executed. (On Solaris systems, you can specify just the name of the core file.) Choose File:Load Corefile or use the debug command with the following syntax:
If the core file was produced by a stripped version of the executable, you can debug it using the unstripped version of the executable. For example, suppose you have two executables, prog.stripped and prog.unstripped. If prog.stripped dumps core, issue the command
The stripped and unstripped executables must be identical except for the stripping. When your program is first loaded, the PC is set to the line that caused the core dump. The stack and all variables are as they were when the program was about to execute that line. Here are some useful actions that can help to locate problems:
|
|