Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "Ulrich Weigand" <uweigand@de.ibm.com>
To: drow@false.org (Daniel Jacobowitz)
Cc: brobecker@adacore.com (Joel Brobecker),
	gdb-patches@sourceware.org,         alex00882007@gmail.com (Alex)
Subject: Re: [rfc] Do not read from the executable if ptrace fails
Date: Mon, 23 Jul 2007 19:15:00 -0000	[thread overview]
Message-ID: <200707231902.l6NJ2dJC004817@d12av02.megacenter.de.ibm.com> (raw)
In-Reply-To: <20070701223533.GC337@caradoc.them.org> from "Daniel Jacobowitz" at Jul 01, 2007 06:35:33 PM

Dan Jacobowitz wrote:
> On Mon, Jun 25, 2007 at 07:54:03PM -0400, Joel Brobecker wrote:
> > > Any comments, or shall I apply this?
> > > 
> > > -- 
> > > Daniel Jacobowitz
> > > CodeSourcery
> > > 
> > > 2007-06-24  Daniel Jacobowitz  <dan@codesourcery.com>
> > > 
> > > 	PR symtab/2161
> > > 	* target.c (memory_xfer_partial): Do not continue past targets with
> > > 	all memory.
> > 
> > FWIW, it looks pretty good to me, and I think it should be part of 6.7
> > too.
> 
> OK, I checked it in.

I only noticed now, but this breaks SPU overlay support.

Overlay support uses "LMA" addresses to refer to overlay sections
not currently loaded, and performs xfer_partial requests to read
from those (e.g. when invoking skip_prologue on a function not
currently present).

This works only if accesses to those LMA addresses go through to
the xfer_memory routine in exec.c, which implements the required
logic to retrieve those section contents from the executable file.

This used to work (probably accidentally?), but is broken by
this patch.  Any suggestions how to fix it?  Should the overlay
logic from xfer_memory be moved to memory_xfer_partial, maybe?

Bye,
Ulrich

-- 
  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE
  Ulrich.Weigand@de.ibm.com


  reply	other threads:[~2007-07-23 19:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-25  3:09 Daniel Jacobowitz
2007-06-26  0:53 ` Joel Brobecker
2007-07-01 22:36   ` Daniel Jacobowitz
2007-07-23 19:15     ` Ulrich Weigand [this message]
2007-07-23 21:25       ` Daniel Jacobowitz
2007-07-23 22:05         ` Ulrich Weigand
2007-07-23 22:54           ` Daniel Jacobowitz
2007-07-24 13:03             ` Ulrich Weigand

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200707231902.l6NJ2dJC004817@d12av02.megacenter.de.ibm.com \
    --to=uweigand@de.ibm.com \
    --cc=alex00882007@gmail.com \
    --cc=brobecker@adacore.com \
    --cc=drow@false.org \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox