Changeset 259 in dev for trunk/abdev/BasicCompiler_Common
- Timestamp:
- Aug 3, 2007, 3:24:22 AM (17 years ago)
- Location:
- trunk/abdev/BasicCompiler_Common
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/Debug.cpp
r256 r259 235 235 UserProc *pUserProc = compiler.objectModule.meta.GetUserProcs().Iterator_GetNext(); 236 236 237 if(rva_to_real(pUserProc-> GetBeginOpAddress()) <= pos &&238 pos < rva_to_real(pUserProc-> GetEndOpAddress()))237 if(rva_to_real(pUserProc->_beginOpAddressOld) <= pos && 238 pos < rva_to_real(pUserProc->_endOpAddressOld)) 239 239 { 240 240 return pUserProc; … … 694 694 extern const UserProc *pSub_DebugSys_EndProc; 695 695 if((BYTE)temporary[0]==0xE8&& 696 *((long *)(temporary+1))+5==(long)rva_to_real(pSub_DebugSys_EndProc-> GetBeginOpAddress())-(long)EIP_RIP(Context)){696 *((long *)(temporary+1))+5==(long)rva_to_real(pSub_DebugSys_EndProc->_beginOpAddressOld)-(long)EIP_RIP(Context)){ 697 697 //プロシージャの終端位置の場合はステップインを行う 698 698 goto StepIn; … … 715 715 //シングルステップON 716 716 WriteProcessMemory(hDebugProcess, 717 (void *)rva_to_real(pUserProc-> GetBeginOpAddress()),718 pobj_DBDebugSection->pobj_now->SingleStepCodeBuffer+pUserProc-> GetBeginOpAddress(),719 pUserProc-> GetEndOpAddress()-pUserProc->GetBeginOpAddress(),717 (void *)rva_to_real(pUserProc->_beginOpAddressOld), 718 pobj_DBDebugSection->pobj_now->SingleStepCodeBuffer+pUserProc->_beginOpAddressOld, 719 pUserProc->_endOpAddressOld-pUserProc->_beginOpAddressOld, 720 720 &lpAccBytes); 721 721 } -
trunk/abdev/BasicCompiler_Common/DebugMiddleFile.cpp
r256 r259 236 236 i2+=lstrlen(buffer+i2)+1; 237 237 238 *(long *)(buffer+i2)=pUserProc-> GetBeginOpAddress();239 i2+=sizeof(long); 240 *(long *)(buffer+i2)=pUserProc-> GetEndOpAddress();238 *(long *)(buffer+i2)=pUserProc->_beginOpAddressOld; 239 i2+=sizeof(long); 240 *(long *)(buffer+i2)=pUserProc->_endOpAddressOld; 241 241 i2+=sizeof(long); 242 242 … … 620 620 pUserProc->SetParentClass( pClass ); 621 621 622 pUserProc-> SetBeginOpAddress( *(long *)(buffer+i2));623 i2+=sizeof(long); 624 pUserProc-> SetEndOpAddress( *(long *)(buffer+i2));622 pUserProc->_beginOpAddressOld = *(long *)(buffer+i2); 623 i2+=sizeof(long); 624 pUserProc->_endOpAddressOld = *(long *)(buffer+i2); 625 625 i2+=sizeof(long); 626 626 -
trunk/abdev/BasicCompiler_Common/VarList.cpp
r256 r259 362 362 { 363 363 pUserProc = compiler.objectModule.meta.GetUserProcs().Iterator_GetNext(); 364 if(rva_to_real(pUserProc-> GetBeginOpAddress()) <= pobj_dti->lplpObp[i2] &&365 pobj_dti->lplpObp[i2] < rva_to_real(pUserProc-> GetEndOpAddress())){364 if(rva_to_real(pUserProc->_beginOpAddressOld) <= pobj_dti->lplpObp[i2] && 365 pobj_dti->lplpObp[i2] < rva_to_real(pUserProc->_endOpAddressOld)){ 366 366 break; 367 367 } … … 610 610 pUserProc = compiler.objectModule.meta.GetUserProcs().Iterator_GetNext(); 611 611 612 if(rva_to_real(pUserProc-> GetBeginOpAddress()) <= pobj_dti->lplpObp[i2] &&613 pobj_dti->lplpObp[i2] < rva_to_real(pUserProc-> GetEndOpAddress()))612 if(rva_to_real(pUserProc->_beginOpAddressOld) <= pobj_dti->lplpObp[i2] && 613 pobj_dti->lplpObp[i2] < rva_to_real(pUserProc->_endOpAddressOld)) 614 614 { 615 615 lstrcpy(temporary,pUserProc->GetName().c_str()); … … 723 723 pUserProc = compiler.objectModule.meta.GetUserProcs().Iterator_GetNext(); 724 724 725 if(rva_to_real(pUserProc-> GetBeginOpAddress()) <= pobj_dti->lplpObp[i2] &&726 pobj_dti->lplpObp[i2] < rva_to_real(pUserProc-> GetEndOpAddress())){725 if(rva_to_real(pUserProc->_beginOpAddressOld) <= pobj_dti->lplpObp[i2] && 726 pobj_dti->lplpObp[i2] < rva_to_real(pUserProc->_endOpAddressOld)){ 727 727 break; 728 728 } -
trunk/abdev/BasicCompiler_Common/include/Procedure.h
r257 r259 375 375 return *pCompilingUserProc; 376 376 } 377 378 379 380 mutable long _beginOpAddressOld; 381 mutable long _endOpAddressOld; 377 382 }; 378 383 -
trunk/abdev/BasicCompiler_Common/src/Class.cpp
r256 r259 737 737 pUserProc=(UserProc *)pVtbl[i]; 738 738 if(!pUserProc) continue; 739 pVtbl[i]=pUserProc-> GetBeginOpAddress()+ImageBase+MemPos_CodeSection;739 pVtbl[i]=pUserProc->_beginOpAddressOld+ImageBase+MemPos_CodeSection; 740 740 } 741 741 }
Note:
See TracChangeset
for help on using the changeset viewer.