Changeset 460 in dev for trunk/ab5.0/abdev
- Timestamp:
- Mar 23, 2008, 10:43:50 AM (17 years ago)
- Location:
- trunk/ab5.0/abdev/BasicCompiler64
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler64/Compile_CallProc.cpp
r436 r460 26 26 bool Opcode_CallProcPtr( const char *variable, const char *lpszParms,ProcPointer *pProcPointer) 27 27 { 28 extern BOOL bDebugCompile;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 … … 462 463 bool Opcode_CallDllProc( const char *lpszParms, DllProc *pDllProc ){ 463 464 464 extern BOOL bDebugCompile;465 465 extern BOOL bDebugSupportProc; 466 if(bDebugCompile&&bDebugSupportProc==0&& pDllProc->GetName() != "DebugBreak" ){ 466 if( compiler.IsDebug() && bDebugSupportProc == 0 && pDllProc->GetName() != "DebugBreak" ) 467 { 467 468 Call_DebugSys_SaveContext(); 468 469 } … … 524 525 void Opcode_CallDelegate( const Delegate &dg, const char *methodPtrValueStr, const char *objPtrValueStr, const char *params ) 525 526 { 526 extern BOOL bDebugCompile;527 527 extern BOOL bDebugSupportProc; 528 if(bDebugCompile&&bDebugSupportProc==0) 528 if( compiler.IsDebug() && bDebugSupportProc == 0 ) 529 { 529 530 Call_DebugSys_SaveContext(); 531 } 530 532 531 533 -
trunk/ab5.0/abdev/BasicCompiler64/Compile_ProcOp.cpp
r402 r460 39 39 const PertialSchedule *pStackFramePertialSchedule = compiler.codeGenerator.op_sub_rsp( 0, true ); 40 40 41 extern BOOL bDebugCompile;42 if(bDebugCompile){41 if( compiler.IsDebug() ) 42 { 43 43 //デバッグ用の変数を定義 44 44 DebugVariable(); … … 203 203 extern char *basbuf; 204 204 extern HANDLE hHeap; 205 extern BOOL bDebugCompile;206 205 int i3,i4; 207 206 char temporary[VN_SIZE]; … … 222 221 extern BOOL bDebugSupportProc; 223 222 if(memcmp(pUserProc->GetName().c_str(),"_DebugSys_",10)==0){ 224 if(!bDebugCompile){ 223 if( !compiler.IsDebug() ) 224 { 225 225 return; 226 226 } … … 449 449 const PertialSchedule *pRspOffsetPertialSchedule1 = NULL; 450 450 const PertialSchedule *pRspOffsetPertialSchedule2 = NULL; 451 if(bDebugCompile&&bDebugSupportProc==0){ 451 if( compiler.IsDebug() && bDebugSupportProc == 0 ) 452 { 452 453 //mov rdx, qword ptr[rsp+スタックフレームサイズ] 453 454 pRspOffsetPertialSchedule1 = compiler.codeGenerator.op_mov_RM(sizeof(_int64),REG_RDX,REG_RSP,0,MOD_BASE_DISP32, Schedule::None, true ); … … 607 608 compiler.codeGenerator.ResolveExitSubSchedule(); 608 609 609 if(bDebugCompile&&bDebugSupportProc==0){ 610 if( compiler.IsDebug() && bDebugSupportProc == 0 ) 611 { 610 612 //call _DebugSys_EndProc 611 613 extern const UserProc *pSub_DebugSys_EndProc; -
trunk/ab5.0/abdev/BasicCompiler64/MakePeHdr.cpp
r452 r460 91 91 extern HWND hOwnerEditor; 92 92 extern HANDLE hHeap; 93 extern BOOL bDebugCompile;94 93 extern DWORD ImageBase; 95 94 extern int obp_AllocSize; … … 119 118 ////////////////// 120 119 // データテーブル 121 if(bDebugCompile){ 120 if( compiler.IsDebug() ) 121 { 122 122 compiler.GetObjectModule().dataTable.Add( (long)0x00000002 ); 123 123 } … … 360 360 compiler.codeGenerator.op_sub_RV( sizeof(_int64), REG_RSP, 0x108 ); 361 361 362 if(bDebugCompile){ 362 if( compiler.IsDebug() ) 363 { 363 364 //デバッグ用の変数を定義 364 365 DebugVariable(); … … 831 832 CDebugSection *pobj_DebugSection; 832 833 pobj_DebugSection=new CDebugSection(); 833 extern BOOL bDebugCompile;834 834 extern BOOL bError; 835 if(bDebugCompile&&bError==0){ 835 if( compiler.IsDebug() && bError == 0 ) 836 { 836 837 CompileMessage( "デバッグ情報を生成しています。" ); 837 838
Note:
See TracChangeset
for help on using the changeset viewer.