Changeset 743 in dev for trunk/ab5.0/abdev/BasicCompiler_Common/DebugMiddleFile.cpp
- Timestamp:
- Sep 7, 2008, 12:38:43 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler_Common/DebugMiddleFile.cpp
r741 r743 51 51 } 52 52 } 53 void DebugSection::make(void){ 53 void DebugSection::make( const SourceLines &sourceLines ) 54 { 54 55 int i2,BufferSize; 55 56 … … 135 136 // コードと行番号の関係 136 137 //////////////////////// 137 extern SourceLines oldSourceLines; 138 139 *(long *)(buffer+i2)=(long)oldSourceLines.size(); 140 i2+=sizeof(long); 141 BOOST_FOREACH( const SourceLine &sourceLine, oldSourceLines ) 138 *(long *)(buffer+i2)=(long)sourceLines.size(); 139 i2+=sizeof(long); 140 BOOST_FOREACH( const SourceLine &sourceLine, sourceLines ) 142 141 { 143 142 *(long *)(buffer+i2) = sourceLine.GetNativeCodePos(); … … 168 167 } 169 168 170 char *DebugSection::MakeSingleStepCode( void){169 char *DebugSection::MakeSingleStepCode(){ 171 170 char *buffer; 172 171 buffer=(char *)HeapAlloc(hHeap,0,SizeOf_CodeSection); … … 187 186 return buffer; 188 187 } 189 BOOL DebugSection::__load( void){188 BOOL DebugSection::__load(){ 190 189 int i2,i3; 191 190 … … 294 293 sourcesLinkRelationalObjectModule = this->_sourcesLinkRelationalObjectModule; 295 294 296 //コードと行番号の関係 297 extern SourceLines oldSourceLines; 298 oldSourceLines = this->_oldSourceLines; 299 300 BreakStepCodeBuffer=pobj_DBBreakPoint->update(OpBuffer,SizeOf_CodeSection); 295 BreakStepCodeBuffer=pobj_DBBreakPoint->update(OpBuffer,SizeOf_CodeSection, this->_oldSourceLines); 301 296 302 297 //プロセスメモリにコピー … … 389 384 } 390 385 391 void DebugSection::choice( void){386 void DebugSection::choice(){ 392 387 //イメージベース 393 388 extern DWORD ImageBase; … … 407 402 compiler.SelectObjectModule( &this->objectModule ); 408 403 409 //コードと行番号の関係410 extern SourceLines oldSourceLines;411 oldSourceLines = this->_oldSourceLines;412 413 404 //グローバル実行領域のサイズ 414 405 extern int GlobalOpBufferSize; … … 423 414 } 424 415 425 void DebugSection::DeleteDebugInfo( void){416 void DebugSection::DeleteDebugInfo(){ 426 417 //コードバッファを解放 427 418 free(OpBuffer);
Note:
See TracChangeset
for help on using the changeset viewer.