This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to lookup a symbol for vma using BFD?


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]