Add support for FreeBSD/i386 ELF.
[deliverable/binutils-gdb.git] / gdb / dsrec.c
index 4cfe83533e7841457985c66c56a6b684eb566bbd..b51d857daef31a73946c436cac6f0779c52cf6cb 100644 (file)
@@ -23,7 +23,6 @@
 #include "srec.h"
 #include <time.h>
 
-int (*ui_load_progress_hook) PARAMS ((char *, unsigned long));
 extern void report_transfer_performance PARAMS ((unsigned long, time_t, time_t));
 
 extern int remote_debug;
@@ -98,8 +97,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;
This page took 0.025401 seconds and 4 git commands to generate.