From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6721 invoked by alias); 29 Jun 2010 19:56:16 -0000 Received: (qmail 6661 invoked by uid 22791); 29 Jun 2010 19:56:14 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 29 Jun 2010 19:56:08 +0000 Received: (qmail 5217 invoked from network); 29 Jun 2010 19:56:06 -0000 Received: from unknown (HELO caradoc.them.org) (dan@127.0.0.2) by mail.codesourcery.com with ESMTPA; 29 Jun 2010 19:56:06 -0000 Date: Tue, 29 Jun 2010 19:56:00 -0000 From: Daniel Jacobowitz To: Kevin Buettner Cc: gdb-patches@sourceware.org Subject: Re: Should we be able to read simulator memory immediately after a "load" command? Message-ID: <20100629195600.GA17949@caradoc.them.org> Mail-Followup-To: Kevin Buettner , gdb-patches@sourceware.org References: <20100628130010.360f398d@mesquite.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100628130010.360f398d@mesquite.lan> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-06/txt/msg00682.txt.bz2 On Mon, Jun 28, 2010 at 01:00:10PM -0700, Kevin Buettner wrote: > This code was added in a patch from 2006. See: > > http://sourceware.org/ml/gdb-patches/2006-10/msg00042.html > > In that posting, Daniel provides a good rationale for that patch as a > whole, but I did not see any discussion of the portion affecting > gdbsim_xfer_inferior_memory(). I'm just guessing, but my guess is that removing the check breaks reading memory between "tar sim" and "load", and previously we would have read from the executable file. If I bothered to make the change it was probably because of the testsuite... -- Daniel Jacobowitz CodeSourcery