summaryrefslogtreecommitdiff
path: root/compiler/dbgdwarf.pas
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/dbgdwarf.pas')
-rw-r--r--compiler/dbgdwarf.pas6
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler/dbgdwarf.pas b/compiler/dbgdwarf.pas
index bda493694d..a895d4fae3 100644
--- a/compiler/dbgdwarf.pas
+++ b/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 }