HomeFreeBSD

As dtrace(1) processes D libraries under /usr/lib/dtrace, the compiler may

Description

As dtrace(1) processes D libraries under /usr/lib/dtrace, the compiler may
return an error if one of the depends_on directives in a library is not
satisfied. In this case, libdtrace is supposed to ignore the library and
carry on. However, the remainder of the library may still be buffered by
the lexer, causing libdtrace to erroneously continue processing it on the
next call to yyparse(). Fix this by explicitly flushing the input buffer
each time the compiler state is reset.

MFC after: 3 weeks

Details

Provenance
markjAuthored on
Parents
rS283024: When in lazyload mode, write the DOF to a temporary file and rename it
Branches
Unknown
Tags
Unknown