Changeset 459 in dev for trunk/ab5.0/abdev/BasicCompiler32
- Timestamp:
- Mar 23, 2008, 10:38:38 AM (17 years ago)
- Location:
- trunk/ab5.0/abdev/BasicCompiler32
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler32/Compile_CallProc.cpp
r435 r459 24 24 } 25 25 26 bool Opcode_CallProcPtr( const char *variable, const char *lpszParms,ProcPointer *pProcPointer){ 27 28 extern BOOL bDebugCompile; 26 bool Opcode_CallProcPtr( const char *variable, const char *lpszParms,ProcPointer *pProcPointer) 27 { 29 28 extern BOOL bDebugSupportProc; 30 if(bDebugCompile&&bDebugSupportProc==0) 29 if( compiler.IsDebug() && bDebugSupportProc == 0 ) 30 { 31 31 Call_DebugSys_SaveContext(); 32 } 32 33 33 34 … … 433 434 } 434 435 435 bool Opcode_CallDllProc( const char *lpszParms, const DllProc *pDllProc ){ 436 437 extern BOOL bDebugCompile; 436 bool Opcode_CallDllProc( const char *lpszParms, const DllProc *pDllProc ) 437 { 438 438 extern BOOL bDebugSupportProc; 439 if(bDebugCompile&&bDebugSupportProc==0&& pDllProc->IsEqualSymbol( "DebugBreak" ) ){ 439 if( compiler.IsDebug() && bDebugSupportProc==0 && pDllProc->IsEqualSymbol( "DebugBreak" ) ) 440 { 440 441 Call_DebugSys_SaveContext(); 441 442 } … … 487 488 void Opcode_CallDelegate( const Delegate &dg, const char *methodPtrValueStr, const char *objPtrValueStr, const char *params ) 488 489 { 489 extern BOOL bDebugCompile;490 490 extern BOOL bDebugSupportProc; 491 if(bDebugCompile&&bDebugSupportProc==0) 491 if( compiler.IsDebug() && bDebugSupportProc == 0 ) 492 { 492 493 Call_DebugSys_SaveContext(); 494 } 493 495 494 496 -
trunk/ab5.0/abdev/BasicCompiler32/Compile_ProcOp.cpp
r402 r459 42 42 cp=-1; 43 43 44 extern BOOL bDebugCompile;45 if(bDebugCompile){44 if( compiler.IsDebug() ) 45 { 46 46 //デバッグ用の変数を定義 47 47 DebugVariable(); … … 283 283 extern char *basbuf; 284 284 extern HANDLE hHeap; 285 extern BOOL bDebugCompile;286 285 int i3,i4,BaseOffset; 287 286 char temporary[VN_SIZE]; … … 301 300 302 301 extern BOOL bDebugSupportProc; 303 if(memcmp(pUserProc->GetName().c_str(),"_DebugSys_",10)==0){ 304 if(!bDebugCompile){ 302 if(memcmp(pUserProc->GetName().c_str(),"_DebugSys_",10)==0) 303 { 304 if( !compiler.IsDebug() ) 305 { 305 306 return; 306 307 } … … 476 477 477 478 const PertialSchedule *pEspOffsetPertialSchedule = NULL; 478 if(bDebugCompile&&bDebugSupportProc==0){ 479 if( compiler.IsDebug() && bDebugSupportProc == 0 ) 480 { 479 481 //push dword ptr[ebp+(AllLocalVarSize-BaseOffset)](スケジュール) 480 482 pEspOffsetPertialSchedule = compiler.codeGenerator.op_push_M( REG_EBP, 0, Schedule::None, true ); … … 633 635 compiler.codeGenerator.ResolveExitSubSchedule(); 634 636 635 if(bDebugCompile&&bDebugSupportProc==0){ 637 if( compiler.IsDebug() && bDebugSupportProc == 0 ) 638 { 636 639 compiler.codeGenerator.opfix( pEspOffsetPertialSchedule, AllLocalVarSize-BaseOffset-sizeof(long) ); 637 640 … … 739 742 compiler.codeGenerator.op_pop(REG_EBX); 740 743 741 if(bDebugCompile){ 744 if( compiler.IsDebug() ) 745 { 742 746 //cmp esp,ebp 743 747 compiler.codeGenerator.op_cmp_RR( REG_ESP, REG_EBP ); -
trunk/ab5.0/abdev/BasicCompiler32/MakePeHdr.cpp
r451 r459 102 102 extern HWND hOwnerEditor; 103 103 extern HANDLE hHeap; 104 extern BOOL bDebugCompile;105 104 extern DWORD ImageBase; 106 105 extern char *basbuf; … … 130 129 ////////////////// 131 130 // データテーブル 132 if( bDebugCompile){131 if( compiler.IsDebug() ){ 133 132 compiler.GetObjectModule().dataTable.Add( (long)0x00000002 ); 134 133 } … … 401 400 compiler.codeGenerator.op_push(REG_EBP); 402 401 403 if( bDebugCompile)402 if( compiler.IsDebug() ) 404 403 { 405 404 // デバッグ用の変数を定義 … … 832 831 CDebugSection *pobj_DebugSection; 833 832 pobj_DebugSection=new CDebugSection(); 834 extern BOOL bDebugCompile;835 833 extern BOOL bError; 836 if(bDebugCompile&&bError==0){ 834 if( compiler.IsDebug() && bError == 0 ) 835 { 837 836 CompileMessage( "デバッグ情報を生成しています。" ); 838 837
Note:
See TracChangeset
for help on using the changeset viewer.