HOW TO LOAD A CORE FILE ON AIX
dalla 270000SVT2 Visits (5273)
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 debugger on AIX is 'dbx'. Because of the change of dates on files after transferring from original machine to local machine it might happen that the core file shows up as older than the executable. To force the debugger to still load the core file you have to use the '-v' option. For telling the debugger where to find the original libraries on the local machine you have to use the '-p' option to remap old path to new one. Multiple mappings can coexist on the same command line as shown in the example below: