aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1999-09-09 00:02:17 +0000
committerStan Shebs <shebs@codesourcery.com>1999-09-09 00:02:17 +0000
commitd4f3574e777abfa65c9ba134e582228f3f32a8d6 (patch)
tree408b74c26833555087f04f4ec466afd488af6087 /gdb/dsrec.c
parentOnly support interworking and pic for ELF or COFF targets (diff)
downloadbinutils-gdb-d4f3574e777abfa65c9ba134e582228f3f32a8d6.tar.gz
binutils-gdb-d4f3574e777abfa65c9ba134e582228f3f32a8d6.tar.bz2
binutils-gdb-d4f3574e777abfa65c9ba134e582228f3f32a8d6.zip
import gdb-1999-09-08 snapshot
Diffstat (limited to 'gdb/dsrec.c')
-rw-r--r--gdb/dsrec.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/gdb/dsrec.c b/gdb/dsrec.c
index 4cfe83533e7..76e32ab2ba6 100644
--- a/gdb/dsrec.c
+++ b/gdb/dsrec.c
@@ -98,8 +98,14 @@ load_srec (desc, file, load_offset, maxrecsize, flags, hashmark, waitack)
bfd_vma addr = bfd_get_section_vma (abfd, s) + load_offset;
bfd_size_type size = bfd_get_section_size_before_reloc (s);
char *section_name = (char *) bfd_get_section_name (abfd, s);
- printf_filtered ("%s\t: 0x%08x .. 0x%08x ",
- section_name, (int) addr, (int) addr + size);
+ /* Both GDB and BFD have mechanisms for printing addresses.
+ In the below, GDB's is used so that the address is
+ consistent with the rest of GDB. BFD's printf_vma() could
+ have also been used. cagney 1999-09-01 */
+ printf_filtered ("%s\t: 0x%s .. 0x%s ",
+ section_name,
+ paddr (addr),
+ paddr (addr + size));
gdb_flush (gdb_stdout);
data_count += size;