HOW TO PACKAGE CORE FILE, EXECUTABLE AND LIBS ON HP
dalla 270000SVT2 Visits (5406)
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. Sometimes it's no easy to identify what libraries or shared objects should be sent along with the core file.
On HP the 'gdb' port of HP has a command that will do it all for you, the 'packcore' command. You just need to specify the core file name and the output directory.