Changeset 259 in dev for trunk/abdev/BasicCompiler64
- Timestamp:
- Aug 3, 2007, 3:24:22 AM (17 years ago)
- Location:
- trunk/abdev/BasicCompiler64
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler64/Compile_ProcOp.cpp
r257 r259 184 184 else bDebugSupportProc=0; 185 185 186 pUserProc-> SetBeginOpAddress( obp );186 pUserProc->_beginOpAddressOld = obp; 187 187 188 188 //コンパイル中の関数が属するクラス … … 222 222 pobj_sf=0; 223 223 224 pUserProc-> SetEndOpAddress( obp );224 pUserProc->_endOpAddressOld = obp; 225 225 return; 226 226 } -
trunk/abdev/BasicCompiler64/MakePeHdr.cpp
r257 r259 624 624 625 625 if( pUserProc->GetName() == "DllMain" ){ 626 DllMain_EntryPoint=pUserProc-> GetBeginOpAddress();626 DllMain_EntryPoint=pUserProc->_beginOpAddressOld; 627 627 } 628 628 629 629 lpdwExportAddressTable=(DWORD *)HeapReAlloc(hHeap,0,lpdwExportAddressTable,(ExportNum+1)*sizeof(DWORD)); 630 lpdwExportAddressTable[ExportNum]=pUserProc-> GetBeginOpAddress();630 lpdwExportAddressTable[ExportNum]=pUserProc->_beginOpAddressOld; 631 631 632 632 lpdwExportNamePointerTable=(DWORD *)HeapReAlloc(hHeap,0,lpdwExportNamePointerTable,(ExportNum+1)*sizeof(DWORD)); … … 1125 1125 // プロシージャポインタスケジュール 1126 1126 for(i=0;i<pobj_SubAddrSchedule->num;i++){ 1127 if(pobj_SubAddrSchedule->ppsi[i]-> GetBeginOpAddress()==01128 &&pobj_SubAddrSchedule->ppsi[i]-> GetEndOpAddress()==0){1127 if(pobj_SubAddrSchedule->ppsi[i]->_beginOpAddressOld==0 1128 &&pobj_SubAddrSchedule->ppsi[i]->_endOpAddressOld==0){ 1129 1129 SetError(300,NULL,-1); 1130 1130 } … … 1132 1132 if(pobj_SubAddrSchedule->pbCall[i]){ 1133 1133 *((long *)(OpBuffer+pobj_SubAddrSchedule->pObpValues[i]))= 1134 pobj_SubAddrSchedule->ppsi[i]-> GetBeginOpAddress()-(pobj_SubAddrSchedule->pObpValues[i]+sizeof(long));1134 pobj_SubAddrSchedule->ppsi[i]->_beginOpAddressOld-(pobj_SubAddrSchedule->pObpValues[i]+sizeof(long)); 1135 1135 } 1136 1136 else{ 1137 1137 *((long *)(OpBuffer+pobj_SubAddrSchedule->pObpValues[i]))= 1138 pobj_SubAddrSchedule->ppsi[i]-> GetBeginOpAddress()+ImageBase+MemPos_CodeSection;1138 pobj_SubAddrSchedule->ppsi[i]->_beginOpAddressOld+ImageBase+MemPos_CodeSection; 1139 1139 } 1140 1140 }
Note:
See TracChangeset
for help on using the changeset viewer.