dbghelp: Fixed offset computation for bitfields inside structures in Codeview debug information.
This commit is contained in:
parent
8f61250bab
commit
b5ffe31d22
|
@ -525,13 +525,13 @@ static void codeview_add_udt_element(struct codeview_type_parse* ctp,
|
|||
case LF_BITFIELD_V1:
|
||||
symt_add_udt_element(ctp->module, symt, name,
|
||||
codeview_fetch_type(ctp, cv_type->bitfield_v1.type, FALSE),
|
||||
cv_type->bitfield_v1.bitoff,
|
||||
(value << 3) + cv_type->bitfield_v1.bitoff,
|
||||
cv_type->bitfield_v1.nbits);
|
||||
return;
|
||||
case LF_BITFIELD_V2:
|
||||
symt_add_udt_element(ctp->module, symt, name,
|
||||
codeview_fetch_type(ctp, cv_type->bitfield_v2.type, FALSE),
|
||||
cv_type->bitfield_v2.bitoff,
|
||||
(value << 3) + cv_type->bitfield_v2.bitoff,
|
||||
cv_type->bitfield_v2.nbits);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue