From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13153 invoked by alias); 1 Aug 2006 13:23:49 -0000 Received: (qmail 13142 invoked by uid 22791); 1 Aug 2006 13:23:49 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Tue, 01 Aug 2006 13:23:47 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1G7uDl-0002Vu-5U; Tue, 01 Aug 2006 09:23:41 -0400 Date: Tue, 01 Aug 2006 13:23:00 -0000 From: Daniel Jacobowitz To: Vladimir Prus Cc: Mark Kettenis , eliz@gnu.org, gdb-patches@sources.redhat.com Subject: Re: Flash support part 2: flash programming Message-ID: <20060801132341.GA9646@nevyn.them.org> Mail-Followup-To: Vladimir Prus , Mark Kettenis , eliz@gnu.org, gdb-patches@sources.redhat.com References: <200607201342.30712.vladimir@codesourcery.com> <200608010923.25082.vladimir@codesourcery.com> <20060801131252.GA9084@nevyn.them.org> <200608011720.14398.vladimir@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200608011720.14398.vladimir@codesourcery.com> User-Agent: Mutt/1.5.11+cvs20060403 X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-08/txt/msg00011.txt.bz2 On Tue, Aug 01, 2006 at 05:20:12PM +0400, Vladimir Prus wrote: > I think I've missed that email. Yes, for a flash code having > target_write_with_progress is more convenient. The trick is, and still was, > to propagate callbacks all the way along the all codepaths, including writing > memory via xfer_using_stratum and writing target objects via to_xfer_partial. > > For the case at hand, flash code knows it will only be writing to target > object, so it can directly call target_write_partial. That's why I took this > route. Right. Let me see what I can come up with. -- Daniel Jacobowitz CodeSourcery