Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Michael Snyder <msnyder@redhat.com>
To: Andrew Cagney <ac131313@cygnus.com>
Cc: Michael Snyder <msnyder@cygnus.com>, gdb-patches@sources.redhat.com
Subject: Re: [PATCH] Add overlay event support to testcase.
Date: Thu, 04 Apr 2002 14:03:00 -0000	[thread overview]
Message-ID: <3CACCB12.649802F8@redhat.com> (raw)
In-Reply-To: <3CACB764.2010409@cygnus.com>

Andrew Cagney wrote:
> 
> > 2002-04-04  Michael Snyder  <msnyder@redhat.com>
> >
> > * gdb.base/ovlymgr.c: Add overlay event breakpoint support.
> 
> Will adding this mean that the event-breakpoint mechanism is the only
> one tested?

Hmmm, good question.  I guess it will.
Should I clone the test case so we test both?


> 
> Andrew
> 
> > Index: gdb.base/ovlymgr.c
> > ===================================================================
> > RCS file: /cvs/src/src/gdb/testsuite/gdb.base/ovlymgr.c,v
> > retrieving revision 1.2
> > diff -c -3 -p -r1.2 ovlymgr.c
> > *** ovlymgr.c 2002/02/05 03:44:25     1.2
> > --- ovlymgr.c 2002/04/04 19:47:38
> > *************** FlushCache (void)
> > *** 30,35 ****
> > --- 30,44 ----
> >   #endif
> >   }
> >
> > + /* _ovly_debug_event:
> > +  * Debuggers may set a breakpoint here, to be notified
> > +  * when the overlay table has been modified.
> > +  */
> > + static void
> > + _ovly_debug_event (void)
> > + {
> > + }
> > +
> >   /* OverlayLoad:
> >    * Copy the overlay into its runtime region,
> >    * and mark the overlay as "mapped".
> > *************** OverlayLoad (unsigned long ovlyno)
> > *** 57,63 ****
> >            _ovly_table[ovlyno][SIZE]);
> >
> >     FlushCache ();
> > !
> >     return TRUE;
> >   }
> >
> > --- 66,72 ----
> >            _ovly_table[ovlyno][SIZE]);
> >
> >     FlushCache ();
> > !   _ovly_debug_event ();
> >     return TRUE;
> >   }
> >
> > *************** OverlayUnload (unsigned long ovlyno)
> > *** 80,85 ****
> > --- 89,95 ----
> >            _ovly_table[ovlyno][VMA],
> >            _ovly_table[ovlyno][SIZE]);
> >
> > +   _ovly_debug_event ();
> >     return TRUE;
> >   }
> >
> >


  reply	other threads:[~2002-04-04 22:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-04 12:24 Michael Snyder
2002-04-04 12:28 ` Andrew Cagney
2002-04-04 14:03   ` Michael Snyder [this message]
2002-04-04 14:50     ` Andrew Cagney
2002-04-05 11:19       ` Michael Snyder

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=3CACCB12.649802F8@redhat.com \
    --to=msnyder@redhat.com \
    --cc=ac131313@cygnus.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=msnyder@cygnus.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