Changeset 265 in dev for trunk/abdev/BasicCompiler_Common/Debug.cpp
- Timestamp:
- Aug 6, 2007, 11:44:42 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/Debug.cpp
r263 r265 229 229 } 230 230 UserProc *GetSubFromObp(ULONG_PTR pos){ 231 compiler. objectModule.meta.GetUserProcs().Iterator_Reset();232 while( compiler. objectModule.meta.GetUserProcs().Iterator_HasNext() )231 compiler.GetObjectModule().meta.GetUserProcs().Iterator_Reset(); 232 while( compiler.GetObjectModule().meta.GetUserProcs().Iterator_HasNext() ) 233 233 { 234 UserProc *pUserProc = compiler. objectModule.meta.GetUserProcs().Iterator_GetNext();235 236 if(rva_to_real(pUserProc-> _beginOpAddressOld) <= pos &&237 pos < rva_to_real(pUserProc-> _endOpAddressOld))234 UserProc *pUserProc = compiler.GetObjectModule().meta.GetUserProcs().Iterator_GetNext(); 235 236 if(rva_to_real(pUserProc->GetBeginOpAddress()) <= pos && 237 pos < rva_to_real(pUserProc->GetEndOpAddress())) 238 238 { 239 239 return pUserProc; … … 693 693 extern const UserProc *pSub_DebugSys_EndProc; 694 694 if((BYTE)temporary[0]==0xE8&& 695 *((long *)(temporary+1))+5==(long)rva_to_real(pSub_DebugSys_EndProc-> _beginOpAddressOld)-(long)EIP_RIP(Context)){695 *((long *)(temporary+1))+5==(long)rva_to_real(pSub_DebugSys_EndProc->GetBeginOpAddress())-(long)EIP_RIP(Context)){ 696 696 //プロシージャの終端位置の場合はステップインを行う 697 697 goto StepIn; … … 714 714 //シングルステップON 715 715 WriteProcessMemory(hDebugProcess, 716 (void *)rva_to_real(pUserProc-> _beginOpAddressOld),717 pobj_DBDebugSection->pobj_now->SingleStepCodeBuffer+pUserProc-> _beginOpAddressOld,718 pUserProc-> _endOpAddressOld-pUserProc->_beginOpAddressOld,716 (void *)rva_to_real(pUserProc->GetBeginOpAddress()), 717 pobj_DBDebugSection->pobj_now->SingleStepCodeBuffer+pUserProc->GetBeginOpAddress(), 718 pUserProc->GetEndOpAddress()-pUserProc->GetBeginOpAddress(), 719 719 &lpAccBytes); 720 720 }
Note:
See TracChangeset
for help on using the changeset viewer.