This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Should we be able to read simulator memory immediately after a "load" command?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]