Using automatic process dump

When a process crashes, a memory dump is automatically created and stored in the file progname.core. The file contains the full process state at the time of the crash. The file is usually stored where the user-mode process is located: /usr/local/bin

The file can then be analyzed with a debugger such as gdb. The following section describes the local analysis of the dump directly on the TwinCAT/BSD system. Of course, the analysis can also be performed with suitable programs on the Windows development computer. To do this, copy the dump to your Windows computer using WinSCP, for example.

Requirements:

Proceed as follows:

1. Navigate to the appropriate directory if you are not in the same directory as the file containing the process dump.
2. Enter the command gdb -c <filename> on the console to examine a process dump.
Enter help to see more information about the name of the GDB command or general information about GDB.