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]

OBJDUMP: print_addr_with_sym


Hi guys,

When using (*info->print_address_func) in disassembler, objdump prints something like this for ARC:

494:   0802 0020               bl.d    494 <main+0x494>

Where the first 494 is a hex number, but it misses the "0x". I've traced this problem to  objdump_print_addr_with_sym (objdump.c:1015) where we call objdump_print_value() function without outputting "0x" string.

Shouldn't we add (*inf->fprintf_func) (inf->stream, "0x") before the call of objdump_print_addr_with_sym() (see objdump_print_addr ()) or do I miss something.

Thanks,
Claudiu


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