2001-08-23 Martin M. Hunt <hunt@redhat.com>
authorMartin Hunt <hunt@redhat.com>
Thu, 23 Aug 2001 19:27:52 +0000 (19:27 +0000)
committerMartin Hunt <hunt@redhat.com>
Thu, 23 Aug 2001 19:27:52 +0000 (19:27 +0000)
* remote-mips.c (pmon_load_fast): Add ui_load_progress_hook
to download loop.
(mips_load_srec): Ditto.

gdb/ChangeLog
gdb/remote-mips.c

index 83689df043d585e771da50ef7e2ddd3374bb9c2d..a6381d82211bcc815397e181f432e28d99e32fc9 100644 (file)
@@ -1,3 +1,9 @@
+2001-08-23  Martin M. Hunt  <hunt@redhat.com>
+
+       * remote-mips.c (pmon_load_fast): Add ui_load_progress_hook
+       to download loop.
+       (mips_load_srec): Ditto.
+
 2001-08-22  Andrew Cagney  <ac131313@redhat.com>
 
        * gdbtypes.c (build_gdbtypes): Initialize TYPE_FLOATFORMAT field
index 0f6d9957275326eafe31f6e22b365e35c17e3d19..a4fe7a4185418c902a32b3895e0ef30191bf15af 100644 (file)
@@ -2845,6 +2845,9 @@ mips_load_srec (char *args)
              reclen = mips_make_srec (srec, '3', s->vma + i, buffer, numbytes);
              send_srec (srec, reclen, s->vma + i);
 
+             if (ui_load_progress_hook)
+               ui_load_progress_hook (s->name, i);
+
              if (hashmark)
                {
                  putchar_unfiltered ('#');
@@ -3366,6 +3369,9 @@ pmon_load_fast (char *file)
                            break;
                          }
 
+                       if (ui_load_progress_hook)
+                         ui_load_progress_hook (s->name, i);
+
                        if (hashmark)
                          {
                            putchar_unfiltered ('#');