[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] addr2line with wrong output, why?
From: |
Joerg Wunsch |
Subject: |
Re: [avr-gcc-list] addr2line with wrong output, why? |
Date: |
Fri, 4 Jul 2003 13:17:02 +0200 (MET DST) |
Klaus Rudolph <address@hidden> wrote:
> Any idea how to get the source file name and line numbers out of a
> elf file compiled from assembler-sources?
You can first verify the stabs in the ELF file using avr-objdump -G.
Watch out the SLINE records.
Did you properly use .function/.endfunc?
Also, i found that avr-gdb gets completely confused if there are
globally visible symbols inside assembler functions. It's IMHO best
to use completely local symbols for assembler jump targets. Either
use Unix (AT&T) assembler style local labels (just a small integer
number only, can be re-used inside the file, reference gets a `f' or
`b' appended to indicate the jump direction), or start the label with
".L".
--
J"org Wunsch Unix support engineer
address@hidden http://www.interface-systems.de/~j/