aboutsummaryrefslogtreecommitdiff
path: root/binutils/objdump.c
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2009-08-24 18:43:50 +0000
committerCary Coutant <ccoutant@google.com>2009-08-24 18:43:50 +0000
commit765abe2bec27ba6c69d53f3aee078749fc6df3c0 (patch)
tree73ca4710582c7bffad66d83dcf791f20dedbf0ee /binutils/objdump.c
parent43e56c3465048924a6b985e0e75bfe2a7ccaef0e (diff)
downloadgdb-765abe2bec27ba6c69d53f3aee078749fc6df3c0.zip
gdb-765abe2bec27ba6c69d53f3aee078749fc6df3c0.tar.gz
gdb-765abe2bec27ba6c69d53f3aee078749fc6df3c0.tar.bz2
* objdump.c (find_symbol_for_address): Avoid costly call to
bfd_octets_per_byte.
Diffstat (limited to 'binutils/objdump.c')
-rw-r--r--binutils/objdump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/binutils/objdump.c b/binutils/objdump.c
index 758b0be..7190998 100644
--- a/binutils/objdump.c
+++ b/binutils/objdump.c
@@ -747,7 +747,7 @@ find_symbol_for_address (bfd_vma vma,
aux = (struct objdump_disasm_info *) info->application_data;
abfd = aux->abfd;
sec = aux->sec;
- opb = bfd_octets_per_byte (abfd);
+ opb = info->octets_per_byte;
/* Perform a binary search looking for the closest symbol to the
required value. We are searching the range (min, max]. */