HOW TO LOAD A CORE FILE ON HP
dalla 270000SVT2 Visits (4184)
A core file is the image of a process' memory but does not contain some of the information a debugger needs to work properly. Some of those information are for example the 'symbol table' and the 'instructions'.
Both executable and loaded objects (dynamic libraries) have each their own set of instructions and symbols. The libraries, especially system ones, used by the process on the machine where the core file comes from might be different from the ones used on the machine where the core file is to be analyzed. As well the path of those libraries might be different on both machines.
For the debugger to work properly the core file, the executable but also all the loaded objects from the original machine should be copied to the machine where the core file is to be examined. Then some extra steps are required to let the debugger know where to find those original libraries and objects.
The common debugger used on HP is HP's own port of 'gdb' located in '/op
To indicate to the debugger where the 'original' libraries and objects are located you must use the environment variable 'GDB_SHLIB_ROOT'. This variable indicates where the '/' from the original machine should be found on the local machine.
[/home/dalla/CORE1] ls -l