aboutsummaryrefslogtreecommitdiff
path: root/gdb/dsrec.c
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
parent325188ecac3a52d92d359c70f9b730470760e1d7 (diff)
downloadfsf-binutils-gdb-d4f3574e777abfa65c9ba134e582228f3f32a8d6.zip
fsf-binutils-gdb-d4f3574e777abfa65c9ba134e582228f3f32a8d6.tar.gz
fsf-binutils-gdb-d4f3574e777abfa65c9ba134e582228f3f32a8d6.tar.bz2
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 4cfe835..76e32ab 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;