소스 검색

* reset flag to generate dummy line info after each module
compilation, since the debuginfo class isn't destroyed/
created all the time

git-svn-id: trunk@6493 -

Jonas Maebe 18 년 전
부모
커밋
90e83fcee6
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      compiler/dbgdwarf.pas

+ 5 - 1
compiler/dbgdwarf.pas

@@ -2501,7 +2501,11 @@ implementation
       begin
         { only needed if no line info at all has been generated }
         if generated_lineinfo then
-          exit;
+          begin
+            { reset for next module compilation }
+            generated_lineinfo:=false;
+            exit;
+          end;
         { at least the Darwin linker is annoyed if you do not }
         { finish the lineinfo section, or if it doesn't       }
         { contain at least one file name and set_address      }