Changeset 741 in dev for trunk/ab5.0/abdev/BasicCompiler_Common/DebugMiddleFile.cpp
- Timestamp:
- Sep 7, 2008, 12:05:40 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler_Common/DebugMiddleFile.cpp
r740 r741 44 44 45 45 46 CDebugSection::~CDebugSection(){46 DebugSection::~DebugSection(){ 47 47 if(dwImageBase) DeleteDebugInfo(); 48 48 if(buffer){ … … 51 51 } 52 52 } 53 void CDebugSection::make(void){53 void DebugSection::make(void){ 54 54 int i2,BufferSize; 55 55 … … 168 168 } 169 169 170 char * CDebugSection::MakeSingleStepCode(void){170 char *DebugSection::MakeSingleStepCode(void){ 171 171 char *buffer; 172 172 buffer=(char *)HeapAlloc(hHeap,0,SizeOf_CodeSection); … … 187 187 return buffer; 188 188 } 189 BOOL CDebugSection::__load(void){189 BOOL DebugSection::__load(void){ 190 190 int i2,i3; 191 191 … … 311 311 } 312 312 313 BOOL CDebugSection::load(HMODULE hModule){313 BOOL DebugSection::load(HMODULE hModule){ 314 314 if(buffer){ 315 315 HeapDefaultFree(buffer); … … 389 389 } 390 390 391 void CDebugSection::choice(void){391 void DebugSection::choice(void){ 392 392 //イメージベース 393 393 extern DWORD ImageBase; … … 423 423 } 424 424 425 void CDebugSection::DeleteDebugInfo(void){425 void DebugSection::DeleteDebugInfo(void){ 426 426 //コードバッファを解放 427 427 free(OpBuffer); … … 437 437 438 438 439 CDBDebugSection::CDBDebugSection()439 DebugSectionCollection::DebugSectionCollection() 440 440 { 441 441 } 442 CDBDebugSection::~CDBDebugSection()442 DebugSectionCollection::~DebugSectionCollection() 443 443 { 444 BOOST_FOREACH( CDebugSection *pDebugSection, debugSections )444 BOOST_FOREACH( DebugSection *pDebugSection, debugSections ) 445 445 { 446 446 delete pDebugSection; … … 449 449 } 450 450 451 BOOL CDBDebugSection::add(HMODULE hModule){452 CDebugSection *pobj_d;453 pobj_d=new CDebugSection();451 BOOL DebugSectionCollection::add(HMODULE hModule){ 452 DebugSection *pobj_d; 453 pobj_d=new DebugSection(); 454 454 if(!pobj_d->load(hModule)){ 455 455 //デバッグ情報が存在しないとき … … 463 463 } 464 464 465 void CDBDebugSection::del(HMODULE hModule){465 void DebugSectionCollection::del(HMODULE hModule){ 466 466 for( int i=0; i<static_cast<int>(this->debugSections.size()); i++ ) 467 467 { … … 469 469 { 470 470 delete debugSections[i]; 471 Jenga::Common::EraseVectorItem<std::vector< CDebugSection *>>( debugSections, i );471 Jenga::Common::EraseVectorItem<std::vector<DebugSection *>>( debugSections, i ); 472 472 break; 473 473 } … … 475 475 } 476 476 477 void CDBDebugSection::choice( int index )477 void DebugSectionCollection::choice( int index ) 478 478 { 479 pobj_now = debugSections[index]; 480 pobj_now->choice(); 481 } 482 483 484 485 CDBDebugSection *pobj_DBDebugSection; 479 pCurrent = debugSections[index]; 480 pCurrent->choice(); 481 }
Note:
See TracChangeset
for help on using the changeset viewer.