HomeFreeBSD

ctf_add_type(): when looking up an integer or floating point type in the

Description

ctf_add_type(): when looking up an integer or floating point type in the
list of pending dynamic type definitions, a match on the type name is not
sufficient - we need to compare the type encodings as well. For example,
bitfields have their own distinct type definitions which share the name of
the underlying integer type, and these types aren't generally
interchangeable.

This bug was causing the following libdtrace error when attempting to trace
the th_flags member of a struct tcphdr:

cg: bad field: off 104 type <32877> bits 539620016

Reported by: rwatson
MFC after: 3 weeks

Details

Provenance
markjAuthored on May 10 2015, 9:39 PM
Parents
rG55b130956d63: Unbreak build following rev. 282726
Branches
Unknown
Tags
Unknown

Event Timeline