diff options
author | Vadim Chugunov <vadimcn@gmail.com> | 2014-10-19 03:07:09 (GMT) |
---|---|---|
committer | Vadim Chugunov <vadimcn@gmail.com> | 2014-12-05 22:19:55 (GMT) |
commit | 8970bccd2901d6e7d77272cd28a20af62e9702f8 (patch) | |
tree | 543cc8028a21ca303cbbfeacc4408c7c6683f889 /src/dwarf2pdb.cpp | |
parent | fbbc3993544852b6d820dc0d224c9eb0f3802911 (diff) | |
download | cv2pdb-8970bccd2901d6e7d77272cd28a20af62e9702f8.zip cv2pdb-8970bccd2901d6e7d77272cd28a20af62e9702f8.tar.gz cv2pdb-8970bccd2901d6e7d77272cd28a20af62e9702f8.tar.bz2 |
Updated mscvpdb.h with latest from WINE.
Diffstat (limited to 'src/dwarf2pdb.cpp')
-rw-r--r-- | src/dwarf2pdb.cpp | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/src/dwarf2pdb.cpp b/src/dwarf2pdb.cpp index 79708ac..028bb82 100644 --- a/src/dwarf2pdb.cpp +++ b/src/dwarf2pdb.cpp @@ -112,10 +112,10 @@ void CV2PDB::appendStackVar(const char* name, int type, Location& loc) }
else
{
- cvs->stack_xxxx_v3.id = S_BPREL_XXXX_V3;
- cvs->stack_xxxx_v3.unknown = baseReg;
- len = cstrcpy_v (true, (BYTE*) cvs->stack_xxxx_v3.name, name);
- len += (BYTE*) &cvs->stack_xxxx_v3.name - (BYTE*) cvs;
+ cvs->regrel_v3.id = S_REGREL_V3;
+ cvs->regrel_v3.reg = baseReg;
+ len = cstrcpy_v(true, (BYTE*)cvs->regrel_v3.name, name);
+ len += (BYTE*)&cvs->regrel_v3.name - (BYTE*)cvs;
}
for (; len & (align-1); len++)
udtSymbols[cbUdtSymbols + len] = 0xf4 - (len & 3);
@@ -152,8 +152,8 @@ bool CV2PDB::appendEndArg() checkUdtSymbolAlloc(8);
codeview_symbol*cvs = (codeview_symbol*) (udtSymbols + cbUdtSymbols);
- cvs->common.id = S_ENDARG_V1;
- cvs->common.len = 2;
+ cvs->generic.id = S_ENDARG_V1;
+ cvs->generic.len = 2;
cbUdtSymbols += 4;
return true;
}
@@ -163,8 +163,8 @@ void CV2PDB::appendEnd() checkUdtSymbolAlloc(8);
codeview_symbol*cvs = (codeview_symbol*) (udtSymbols + cbUdtSymbols);
- cvs->common.id = S_END_V1;
- cvs->common.len = 2;
+ cvs->generic.id = S_END_V1;
+ cvs->generic.len = 2;
cbUdtSymbols += 4;
}
@@ -264,9 +264,7 @@ bool CV2PDB::addDWARFProc(DWARF_InfoData& procid, DWARF_CompilationUnit* cu, DIE {
Location param;
if (decodeLocation(id.location.expr.ptr, id.location.expr.len, param, pframeBase))
- {
appendStackVar(id.name, getTypeByDWARFPtr(cu, id.type), param);
- }
}
}
prev = cursor;
@@ -289,9 +287,7 @@ bool CV2PDB::addDWARFProc(DWARF_InfoData& procid, DWARF_CompilationUnit* cu, DIE {
Location var;
if (decodeLocation(id.location.expr.ptr, id.location.expr.len, var, pframeBase))
- {
appendStackVar(id.name, getTypeByDWARFPtr(cu, id.type), var);
- }
}
}
else if (id.tag == DW_TAG_lexical_block)
|