Browse Source

+ implemented the -Xg option for putting the debug information in a separate
file on i8086-msdos and i8086-win16

git-svn-id: trunk@39096 -

nickysn 7 years ago
parent
commit
6f44deb557
2 changed files with 4 additions and 0 deletions
  1. 2 0
      compiler/systems/t_msdos.pas
  2. 2 0
      compiler/systems/t_win16.pas

+ 2 - 0
compiler/systems/t_msdos.pas

@@ -271,6 +271,8 @@ begin
     LinkRes.Add('debug codeview')
   else if cs_debuginfo in current_settings.moduleswitches then
     LinkRes.Add('debug watcom all');
+  if cs_link_separate_dbg_file in current_settings.globalswitches then
+    LinkRes.Add('option symfile');
 
   { add objectfiles, start with prt0 always }
   case current_settings.x86memorymodel of

+ 2 - 0
compiler/systems/t_win16.pas

@@ -232,6 +232,8 @@ begin
     LinkRes.Add('debug dwarf')
   else if target_dbg.id=dbg_codeview then
     LinkRes.Add('debug codeview');
+  if cs_link_separate_dbg_file in current_settings.globalswitches then
+    LinkRes.Add('option symfile');
 
   { add objectfiles, start with prt0 always }
   case current_settings.x86memorymodel of