delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/04/19/08:49:57

X-Authentication-Warning: acp3bf.physik.rwth-aachen.de: broeker owned process doing -bs
Date: Mon, 19 Apr 1999 15:49:14 +0200 (MET DST)
From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
X-Sender: broeker AT acp3bf
To: djgpp workers list <djgpp-workers AT delorie DOT com>
Subject: Probblem: Debug info COFF vs. stabs
Message-ID: <Pine.LNX.3.93.990419153959.6515U-100000@acp3bf>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com

Hello, everyone

During my work on making as much of the functionality of recent 'gprof'
work on DJGPP (line-by-line profiling, static call graph by code
inspection, basic block counts from 'gcc -a'), I found out a peculiarity,
which may actually turn out to be a bug in one of the GNU packages (gcc,
gas, binutils could all be the culprit, in principle). 

It seems like the base address of any code offset addresses found in the
debug information (line numbers, esp.) is different for COFF and stabs.
This wouldn't necessarily be a problem, but gprof uses the BFD library,
and at the time it looks at a single line number record, there seems to be
no information left about what type of debugging record it came from (a
single executable may have both types in it, e.g. if you compile with
-gstabs, but some of the libraries were made with -g). 

At the moment, this means that my improved gprof only works for '-gstabs'
debug info, or only for '-g' style, but not for both of them. 

I'm unsure which of the three possible things is wrong, here:

1) BFD's understanding of COFF 
2) DJGPP's understanding of COFF
3) BFD's understanding of stabs symbols

Any light to be shed by the DJGPP workers?

Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019