This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[RFA] ui_progress_hook in remote-mips.c
- To: Insight Maling List <insight at sources dot redhat dot com>, gdb-patches at sources dot redhat dot com
- Subject: [RFA] ui_progress_hook in remote-mips.c
- From: "Martin M. Hunt" <hunt at redhat dot com>
- Date: Thu, 23 Aug 2001 01:59:45 -0700
- Organization: Red Hat Inc
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)
{