From 12b1e0cbfdaade17a276c7f492159713ccacdaea Mon Sep 17 00:00:00 2001 From: nickysn Date: Sun, 27 Oct 2013 20:30:00 +0000 Subject: [PATCH] + tell wlink to add dwarf debug info to the executable when -gw2/3/4 is used git-svn-id: trunk@25874 - --- compiler/systems/t_msdos.pas | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compiler/systems/t_msdos.pas b/compiler/systems/t_msdos.pas index 5055b9cdba..b1d68dd456 100644 --- a/compiler/systems/t_msdos.pas +++ b/compiler/systems/t_msdos.pas @@ -247,6 +247,9 @@ begin { Add all options to link.res instead of passing them via command line: DOS command line is limited to 126 characters! } + if paratargetdbg in [dbg_dwarf2,dbg_dwarf3,dbg_dwarf4] then + LinkRes.Add('debug dwarf'); + { add objectfiles, start with prt0 always } case current_settings.x86memorymodel of mm_tiny: LinkRes.Add('file ' + maybequoted(FindObjectFile('prt0t','',false)));