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: gdb-patches@sourceware.org, eliz@gnu.org
Subject: Re: [rfc] Replace deprecated_target_new_objfile_hook by observer
Date: Mon, 07 May 2007 22:30:00 -0000	[thread overview]
Message-ID: <200705072230.l47MUOin027409@d12av02.megacenter.de.ibm.com> (raw)
In-Reply-To: <20070507214706.GA18459@caradoc.them.org> from "Daniel Jacobowitz" at May 07, 2007 05:47:06 PM

Daniel Jacobowitz:
> On Mon, May 07, 2007 at 11:16:58PM +0200, Ulrich Weigand wrote:
> > Hello,
> > 
> > this patch removes the deprecated_target_new_objfile_hook and replaces
> > it by a new observer "new_objfile".  The semantics remains completely
> > unchanged, so the patch is mostly just mechanical changes.
> 
> Do we really need it?  We've already got executable_changed and
> solib_loaded and solib_unloaded.

Hmm, it was quite useful when implementing SPU overlay support
(see the patch set I just sent out).  I'm using it to attach
a target-specific overlay table data structure to each objfile
as it is read in.

There didn't seem to be any other callback that was just right
for this (e.g. executable_changed is called already before the
symfile_objfile is instantiated) ...

Any suggestions how to solve this differently?

Thanks,
Ulrich

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


  reply	other threads:[~2007-05-07 22:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-07 21:17 Ulrich Weigand
2007-05-07 21:48 ` Daniel Jacobowitz
2007-05-07 22:30   ` Ulrich Weigand [this message]
2007-05-10 21:45     ` Daniel Jacobowitz
2007-05-10 22:27       ` Ulrich Weigand
2007-05-07 21:53 ` Eli Zaretskii
2007-05-11 20:24 ` 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=200705072230.l47MUOin027409@d12av02.megacenter.de.ibm.com \
    --to=uweigand@de.ibm.com \
    --cc=drow@false.org \
    --cc=eliz@gnu.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