Comment 1 for bug 1908305

Revision history for this message
Andrew Johnson (anj) wrote :

This happens because dbdExpand.pl now allows device support to be defined before the record type it refers to has been loaded, so if base.dbd isn't the first DBD file some other support can become the first device support entry for one of the base record types instead of Soft Channel, and hence become the default for records that don't explicitly set DTYP.

I have a fix, which is to have the IOC always insert a device named "Soft Channel" at the beginning of the device list (zeroth position) for the record type. This makes "Soft Channel" a special device name which it actually wasn't before, but this is about the only nice way I can see to resolve this.

My new code also aborts the parser if a new device support called "Soft Channel" is ever loaded after the record type already has record instances loaded.