From: Andrew Burgess Date: Fri, 22 Apr 2022 15:45:06 +0000 (+0100) Subject: objdump: fix styled printing of addresses X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4bb461e42c556fc9804937f70e3f2fc1534732d2;p=binutils-gdb.git objdump: fix styled printing of addresses Previous work to add styled disassembler output missed a case in objdump_print_addr, which is fixed in this commit. --- diff --git a/binutils/objdump.c b/binutils/objdump.c index 54c89a32db2..060a136efa4 100644 --- a/binutils/objdump.c +++ b/binutils/objdump.c @@ -1640,14 +1640,15 @@ objdump_print_addr (bfd_vma vma, { if (!no_addresses) { - (*inf->fprintf_func) (inf->stream, "0x"); + (*inf->fprintf_styled_func) (inf->stream, dis_style_address, "0x"); objdump_print_value (vma, inf, skip_zeroes); } if (display_file_offsets) - inf->fprintf_func (inf->stream, _(" (File Offset: 0x%lx)"), - (long int) (inf->section->filepos - + (vma - inf->section->vma))); + inf->fprintf_styled_func (inf->stream, dis_style_text, + _(" (File Offset: 0x%lx)"), + (long int) (inf->section->filepos + + (vma - inf->section->vma))); return; }