* [PATCH] Add overlay event support to testcase.
@ 2002-04-04 12:24 Michael Snyder
2002-04-04 12:28 ` Andrew Cagney
0 siblings, 1 reply; 5+ messages in thread
From: Michael Snyder @ 2002-04-04 12:24 UTC (permalink / raw)
To: gdb-patches
2002-04-04 Michael Snyder <msnyder@redhat.com>
* gdb.base/ovlymgr.c: Add overlay event breakpoint support.
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;
}
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Add overlay event support to testcase.
2002-04-04 12:24 [PATCH] Add overlay event support to testcase Michael Snyder
@ 2002-04-04 12:28 ` Andrew Cagney
2002-04-04 14:03 ` Michael Snyder
0 siblings, 1 reply; 5+ messages in thread
From: Andrew Cagney @ 2002-04-04 12:28 UTC (permalink / raw)
To: Michael Snyder; +Cc: gdb-patches
> 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?
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;
> }
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Add overlay event support to testcase.
2002-04-04 12:28 ` Andrew Cagney
@ 2002-04-04 14:03 ` Michael Snyder
2002-04-04 14:50 ` Andrew Cagney
0 siblings, 1 reply; 5+ messages in thread
From: Michael Snyder @ 2002-04-04 14:03 UTC (permalink / raw)
To: Andrew Cagney; +Cc: Michael Snyder, gdb-patches
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;
> > }
> >
> >
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Add overlay event support to testcase.
2002-04-04 14:03 ` Michael Snyder
@ 2002-04-04 14:50 ` Andrew Cagney
2002-04-05 11:19 ` Michael Snyder
0 siblings, 1 reply; 5+ messages in thread
From: Andrew Cagney @ 2002-04-04 14:50 UTC (permalink / raw)
To: Michael Snyder; +Cc: Michael Snyder, gdb-patches
> 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?
Or test both from the same test - a command to force each mechanism?
Andrew
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Add overlay event support to testcase.
2002-04-04 14:50 ` Andrew Cagney
@ 2002-04-05 11:19 ` Michael Snyder
0 siblings, 0 replies; 5+ messages in thread
From: Michael Snyder @ 2002-04-05 11:19 UTC (permalink / raw)
To: Andrew Cagney; +Cc: Michael Snyder, gdb-patches
Andrew Cagney wrote:
>
> > 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?
>
> Or test both from the same test - a command to force each mechanism?
That seems bogus. GDB auto-detects whether the event mechanism can
be supported. I don't think the user needs a means to override that.
I can test both if I provide two versions of the overlay manager --
one with event support and one without.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-04-05 19:19 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-04 12:24 [PATCH] Add overlay event support to testcase Michael Snyder
2002-04-04 12:28 ` Andrew Cagney
2002-04-04 14:03 ` Michael Snyder
2002-04-04 14:50 ` Andrew Cagney
2002-04-05 11:19 ` Michael Snyder
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox