This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: How to lookup a symbol for vma using BFD?
Yes, I understand it.
But let's assume I do not have such a possibility. I just need to know
what is the name of the file that contains some address.
2008/8/7 Nick Clifton <nickc@redhat.com>:
> Hi Dmitry,
>
>> I've found that the comp unit for this file contains no
>> DW_AT_stmt_list attribute and comp_unit_maybe_decode_line_info() from
>> dwarf2.c returns FALSE thus preventing comp_unit_find_line() from
>> looking up variable table.
>
> You need to include DWARF2 debugging info in your object files for this
> work. ie you need to have the "-g" switch present on gcc's command line
> when you compile your object files.
>
> Cheers
> Nick
>
>
>