diff options
author | nickysn <nickysn@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2018-05-22 15:33:26 +0000 |
---|---|---|
committer | nickysn <nickysn@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2018-05-22 15:33:26 +0000 |
commit | 0502331805f5cdad288dfcaa00dbfe25523e665c (patch) | |
tree | 000d74a1c724a76587fa807452f02814c520db7f /compiler/systems | |
parent | a8f59fda558c591b694214f07f5daf4cc979d149 (diff) | |
download | fpc-0502331805f5cdad288dfcaa00dbfe25523e665c.tar.gz |
+ implemented the -Xg option for putting the debug information in a separate
file on i8086-msdos and i8086-win16
git-svn-id: https://svn.freepascal.org/svn/fpc/trunk@39096 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'compiler/systems')
-rw-r--r-- | compiler/systems/t_msdos.pas | 2 | ||||
-rw-r--r-- | compiler/systems/t_win16.pas | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/compiler/systems/t_msdos.pas b/compiler/systems/t_msdos.pas index 1b9f3f1c7a..f7dfe3bd70 100644 --- a/compiler/systems/t_msdos.pas +++ b/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 diff --git a/compiler/systems/t_win16.pas b/compiler/systems/t_win16.pas index 676ba3e625..229be8496a 100644 --- a/compiler/systems/t_win16.pas +++ b/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 |