From: Andrew Cagney <ac131313@redhat.com>
To: Joel Brobecker <brobecker@gnat.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFA] Add observer notification in normal_stop
Date: Tue, 18 Mar 2003 15:50:00 -0000 [thread overview]
Message-ID: <3E774057.50209@redhat.com> (raw)
In-Reply-To: <20030318015112.GK16507@gnat.com>
> [sigh, once more, with the patch this time...]
Welcome to my world.
> Hello,
>
> I am currently writing a regression test for observer.c, which will live
> in testsuite/gdb.gdb. It's using a mechanism similar to xfullpath.exp.
> But in order for the test to function, observer.o needs to be linked in.
> This wasn't the case up to now, because there is currently no code using
> it.
>
> This patch is adding a call to observer_notify_normal_stop() inside
> normal_stop. This notification will be useful later, when the latest
> version of ada-task.c (from ACT's repository, accessible from
> libre.act-europe.fr BTW) is contributed. In the meantime, the overhead
> is really minimal and it allows us to test observer.c by debugging gdb.
>
> 2003-03-17 J. Brobecker <brobecker@gnat.com>
>
> * infrun.c (observer.h): Add #include.
> (normal_stop): Add call to observer_notify_normal_stop.
> * Makefile.in (infrun.o): Add dependency on observer.h.
>
> Ok to apply?
I think down the end, next to the annotate_stop() call, would be better.
I'm assuming that the secret agenda is to replace all annotate_xxx() and
xxx_hook() calls with a equivalent observer_notify_xxx() call. Hence,
adding an observer_xxx() call where ever either of the former appears
should be pretty obvious and largely mechanical.
An orthogonal task is rationalizing some of those events and/or their
call site. For instance, merging registers changed and memory changed
into a single observer_notify_target_changed().
Andrew
next prev parent reply other threads:[~2003-03-18 15:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-18 1:49 Joel Brobecker
2003-03-18 1:51 ` Joel Brobecker
2003-03-18 15:50 ` Andrew Cagney [this message]
2003-03-18 18:22 ` Joel Brobecker
2003-03-18 19:00 ` Andrew Cagney
2003-03-18 19:07 ` Joel Brobecker
2003-03-18 19:12 ` Joel Brobecker
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=3E774057.50209@redhat.com \
--to=ac131313@redhat.com \
--cc=brobecker@gnat.com \
--cc=gdb-patches@sources.redhat.com \
/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