Home
Developer Resources
QNX RTOS v4
QNX RTOS v4 Knowledge Base

QNX RTOS v4 Knowledge Base

Foundry27
Foundry27
QNX RTOS v4 project
Resources

QNX RTOS v4 Knowledge Base

Title "Invalid trap file" while debugging a dump file
Ref. No. QNX.000006522
Category(ies) Development
Issue In an attempt to use the 'dumper' utility to resolve a process crash problem which is occurring occasionally.  The debugger is run with the -Trap option but each time it is attempted, wd returns "Invalid trap file".

Watcom debugger is started using the following command:

wd -Trap=ucm.dmp ucm


Solution This is a relatively common mistake. The *.dmp file is not a trap file. For postmortem dumps the file pmd.trp must be used as the trap file, pmd takes the *.dmp file as input.

Here is an example commandline:

x09wd -trap=pmd ucm.dmp

This will place the debugger at the point where the program failed.

For more information on the Postmortem dump facility, see the section "Debugging using the postmortem dump facility" in chapter 3 of the Watcom Debugger Manual.