Changeset 78 in dev for BasicCompiler_Common/VarList.cpp
- Timestamp:
- Mar 25, 2007, 2:47:49 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler_Common/VarList.cpp
r76 r78 29 29 } 30 30 31 sprintf(lptv->item.pszText,"%s %s(&H%X)",VarName,STRING_OBJECT,( DWORD64)offset);31 sprintf(lptv->item.pszText,"%s %s(&H%X)",VarName,STRING_OBJECT,(ULONG_PTR)offset); 32 32 lptv->item.iImage=1; 33 33 lptv->item.iSelectedImage=1; … … 40 40 i2=ReadProcessMemory(hDebugProcess,(void *)offset,&pData,sizeof(void *),&accessBytes); 41 41 42 sprintf(lptv->item.pszText,"%s %s(&H%X)",VarName,STRING_POINTEROFOBJECT,( DWORD64)pData);42 sprintf(lptv->item.pszText,"%s %s(&H%X)",VarName,STRING_POINTEROFOBJECT,(ULONG_PTR)pData); 43 43 lptv->item.iImage=4; 44 44 lptv->item.iSelectedImage=4; … … 62 62 } 63 63 } 64 if(i2==-1) sprintf(lptv->item.pszText,"%s %d(&H%X)",VarName,( DWORD64)pData,(DWORD64)pData);65 else sprintf(lptv->item.pszText,"%s %d(&H%X) \"%s\"",VarName,( DWORD64)pData,(DWORD64)pData,temporary);64 if(i2==-1) sprintf(lptv->item.pszText,"%s %d(&H%X)",VarName,(ULONG_PTR)pData,(ULONG_PTR)pData); 65 else sprintf(lptv->item.pszText,"%s %d(&H%X) \"%s\"",VarName,(ULONG_PTR)pData,(ULONG_PTR)pData,temporary); 66 66 } 67 67 else sprintf(lptv->item.pszText,"%s %s",VarName,STRING_CANNOTACCESS); … … 361 361 if(!pUserProc) return; 362 362 363 foreach( Variable *pVar, UserProc::CompilingUserProc().localVars ){363 foreach( Variable *pVar, pUserProc->localVars ){ 364 364 365 365 //スコープ外の場合は無視 … … 413 413 //Thisポインタを取得 414 414 LONG_PTR pThis; 415 const Variable *pVar = UserProc::CompilingUserProc().localVars.Find( "_System_LocalThis" );415 const Variable *pVar = pUserProc->localVars.Find( "_System_LocalThis" ); 416 416 if( !pVar ){ 417 417 return; … … 428 428 pUserProc->GetParentClassPtr()->ppobj_Member[i]->name, 429 429 STRING_ARRAY, 430 ( DWORD64)offset);430 (ULONG_PTR)offset); 431 431 tv.item.iImage=0; 432 432 tv.item.iSelectedImage=0; … … 559 559 for(i3=0;i3<(int)pobj_dti->iProcLevel+1;i3++){ 560 560 for(i2=0;i2<MaxLineInfoNum-1;i2++){ 561 if(( DWORD64)(pLineInfo[i2].TopObp+ImageBase+MemPos_CodeSection)<=pobj_dti->lplpObp[i3]&&562 pobj_dti->lplpObp[i3]<=( DWORD64)(pLineInfo[i2+1].TopObp+ImageBase+MemPos_CodeSection)) break;561 if((ULONG_PTR)(pLineInfo[i2].TopObp+ImageBase+MemPos_CodeSection)<=pobj_dti->lplpObp[i3]&& 562 pobj_dti->lplpObp[i3]<=(ULONG_PTR)(pLineInfo[i2+1].TopObp+ImageBase+MemPos_CodeSection)) break; 563 563 } 564 564 if(i2==MaxLineInfoNum) pobj_dti->lpdwCp[i3]=-1;
Note:
See TracChangeset
for help on using the changeset viewer.