public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* [RFA] ui_progress_hook in remote-mips.c
@ 2001-08-23  2:00 Martin M. Hunt
  2001-08-23 12:10 ` Andrew Cagney
  0 siblings, 1 reply; 2+ messages in thread
From: Martin M. Hunt @ 2001-08-23  2:00 UTC (permalink / raw)
  To: Insight Maling List, gdb-patches

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)
 			  {

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [RFA] ui_progress_hook in remote-mips.c
  2001-08-23  2:00 [RFA] ui_progress_hook in remote-mips.c Martin M. Hunt
@ 2001-08-23 12:10 ` Andrew Cagney
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Cagney @ 2001-08-23 12:10 UTC (permalink / raw)
  To: Martin M. Hunt; +Cc: Insight Maling List, gdb-patches

> 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

I suspect you ment ui_load_progress_hook.

> 	to download loop.
> 	(mips_load_srec): Ditto.
> 
> 

Ulgh, yes, little choice.

	Andrew


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-08-23 12:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-23  2:00 [RFA] ui_progress_hook in remote-mips.c Martin M. Hunt
2001-08-23 12:10 ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).