[RFA] ui_progress_hook in remote-mips.c
Martin M. Hunt
hunt@redhat.com
Thu Aug 23 02:00:00 GMT 2001
Without these hooks, Insight just hangs while downloads happen invisibly.
2001-08-23 Martin M. Hunt <hunt@redhat.com>
* remote-mips.c (pmon_load_fast): Add ui_progress_hook
to download loop.
(mips_load_srec): Ditto.
Index: remote-mips.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/remote-mips.c,v
retrieving revision 2.116.2.1
diff -u -p -r2.116.2.1 remote-mips.c
--- remote-mips.c 2001/08/09 04:17:07 2.116.2.1
+++ remote-mips.c 2001/08/23 08:57:00
@@ -2847,6 +2857,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 ('#');
@@ -3367,6 +3380,9 @@ pmon_load_fast (char *file)
zerofill = 0; /* do not transmit pending zerofills */
break;
}
+
+ if (ui_load_progress_hook)
+ ui_load_progress_hook (s->name, i);
if (hashmark)
{
More information about the Insight
mailing list