[fpc-devel] RTL StackTrace patch
    Michael Van Canneyt 
    michael at freepascal.org
       
    Thu Jan 17 10:23:24 CET 2008
    
    
  
On Thu, 17 Jan 2008, Fabio Dell'Aria wrote:
> Hi to all,
> 
> I'm writing a patch to can use an external .dbg file during the
> debugging process.
> 
> All works fine but when an unhandled exception is raised the RTL show
> stacktrace without debug info (no sources line).
> 
> How I can instruct the RTL to search the debug symbols in a
> project.dbg file (if not found in the executable)?
See function openstabs in lineinfo:
function OpenStabs:boolean;
var
  ofm : word;
begin
  OpenStabs:=false;
  assign(f,paramstr(0));
and for dwarf in lnfodwarf there is OpenDwarf:
function OpenDwarf() : Boolean;
var
  oldfilemode : Word;
begin
  OpenDwarf := false;
  { open input file }
  assign(infile, paramstr(0));
  {$I-}
Michael.
    
    
More information about the fpc-devel
mailing list