diff options
author | Andrew Burgess <aburgess@redhat.com> | 2022-04-22 16:45:06 +0100 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2022-05-03 10:51:21 +0100 |
commit | 4bb461e42c556fc9804937f70e3f2fc1534732d2 (patch) | |
tree | dfd1766d3094e5398666f9b389f0a3b25b07dabe /binutils/objdump.c | |
parent | 3cd25174b88a10474131573dda6c15d09cb3031e (diff) | |
download | gdb-4bb461e42c556fc9804937f70e3f2fc1534732d2.zip gdb-4bb461e42c556fc9804937f70e3f2fc1534732d2.tar.gz gdb-4bb461e42c556fc9804937f70e3f2fc1534732d2.tar.bz2 |
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.
Diffstat (limited to 'binutils/objdump.c')
-rw-r--r-- | binutils/objdump.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/binutils/objdump.c b/binutils/objdump.c index 54c89a3..060a136 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; } |