Skip to content

MachoHasUuid

Description

True iff the parsed Mach-O carried an LC_UUID load command. Cross-namespace readers (MachoCache, …) gate dSYM pairing on the UUID’s presence; this is the public seam they go through instead of reaching at self->has_uuid directly.

Usage example (Cross-references)

Usage examples (Cross-references)
        if (!e->main_open)
            return false;
        if (!MachoHasUuid(&e->main)) {
            // Without a UUID we can't validate a dSYM pairing -- bail.
            return false;
        StrDeinit(&path);
    
        if (!MachoHasUuid(&e->dsym) || MemCompare(MachoUuid(&e->dsym), MachoUuid(&e->main), 16) != 0) {
            LOG_ERROR("MachoCache: dSYM UUID mismatch for {}", e->module_path);
            MachoDeinit(&e->dsym);
Last updated on