Mail Archives: djgpp/2002/10/16/13:30:18
Hello.
Eric Rudd wrote:
> I have used symify for many years without a problem, but lately I have
> been having problems getting line numbers in a traceback.
[snip]
> As you can see, symify gives me the subroutine names and offsets, but
> no line numbers. I don't know what I'm doing wrong -- this used to
> work. Is this a new problem that was introduced in gcc v3.2? I'm
> using a symify.exe dated 2001-12-24 (in the latest DJDEV203). I dimly
> recall that there was some way of getting an annotated assembly listing
> that included the offsets of the line numbers, but either I can't
> remember how to do that, or it doesn't work anymore. What should I do
> next to isolate this problem?
I think -g defaults to DWARF-2 debugging information with gcc 3.x. Try
explicitly building it with COFF debugging information, using -gcoff instead
of -g. I just tried it with your test program and it worked for me (gcc 3.2,
binutils 2.13).
HTH, regards,
--
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]
- Raw text -