Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA] gdb-events.sh: Add clear_gdb_event_hooks
@ 2002-08-14 15:37 Keith Seitz
  2002-08-16  7:05 ` Andrew Cagney
  0 siblings, 1 reply; 3+ messages in thread
From: Keith Seitz @ 2002-08-14 15:37 UTC (permalink / raw)
  To: gdb-patches

Hi,

More fallout of my MI work: when switching interpreters, we'll need to be 
able to clear all hooks and event handlers so that when the new 
interpreter's hooks/event handlers are installed, we don't leave the old 
ones lying about.

Ok?
Keith

ChangeLog
2002-08-14  Keith Seitz  <keiths@redhat.com>

        * gdb-events.sh (clear_gdb_event_hooks): New function.
        * gdb-events.c: Regenerate.
        * gdb-events.h: Regenerate.

Patch
Index: gdb-events.sh
===================================================================
RCS file: /cvs/src/src/gdb/gdb-events.sh,v
retrieving revision 1.12
retrieving revision 1.12.6.1
diff -p -r1.12 -r1.12.6.1
*** gdb-events.sh	19 Mar 2002 02:51:05 -0000	1.12
--- gdb-events.sh	24 Jun 2002 23:59:57 -0000	1.12.6.1
*************** extern struct gdb_events *set_gdb_event_
*** 267,272 ****
--- 267,275 ----
  /* Deliver any pending events. */
  extern void gdb_events_deliver (struct gdb_events *vector);
  
+ /* Clear event handlers */
+ extern void clear_gdb_event_hooks (void);
+ 
  #if !WITH_GDB_EVENTS
  #define set_gdb_events(x) 0
  #define set_gdb_event_hooks(x) 0
*************** do
*** 389,394 ****
--- 392,409 ----
    esac
  done
  cat <<EOF
+ }
+ #endif
+ EOF
+ 
+ # Clear hooks function
+ echo ""
+ cat <<EOF
+ #if WITH_GDB_EVENTS
+ void
+ clear_gdb_event_hooks (void)
+ {
+   set_gdb_event_hooks (&null_event_hooks);
  }
  #endif
  EOF


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [RFA] gdb-events.sh: Add clear_gdb_event_hooks
  2002-08-14 15:37 [RFA] gdb-events.sh: Add clear_gdb_event_hooks Keith Seitz
@ 2002-08-16  7:05 ` Andrew Cagney
  2002-08-16  9:09   ` Keith Seitz
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Cagney @ 2002-08-16  7:05 UTC (permalink / raw)
  To: Keith Seitz; +Cc: gdb-patches

> Hi,
> 
> More fallout of my MI work: when switching interpreters, we'll need to be 
> able to clear all hooks and event handlers so that when the new 
> interpreter's hooks/event handlers are installed, we don't leave the old 
> ones lying about.
> 
> Ok?
> Keith
> 
> ChangeLog
> 2002-08-14  Keith Seitz  <keiths@redhat.com>
> 
>         * gdb-events.sh (clear_gdb_event_hooks): New function.
>         * gdb-events.c: Regenerate.
>         * gdb-events.h: Regenerate.

Ok.
Andrew



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [RFA] gdb-events.sh: Add clear_gdb_event_hooks
  2002-08-16  7:05 ` Andrew Cagney
@ 2002-08-16  9:09   ` Keith Seitz
  0 siblings, 0 replies; 3+ messages in thread
From: Keith Seitz @ 2002-08-16  9:09 UTC (permalink / raw)
  To: gdb-patches

On Fri, 16 Aug 2002, Andrew Cagney wrote:

> > ChangeLog
> > 2002-08-14  Keith Seitz  <keiths@redhat.com>
> > 
> >         * gdb-events.sh (clear_gdb_event_hooks): New function.
> >         * gdb-events.c: Regenerate.
> >         * gdb-events.h: Regenerate.
> 
> Ok.

Thank you. Committed.

Keith



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-08-16 16:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-14 15:37 [RFA] gdb-events.sh: Add clear_gdb_event_hooks Keith Seitz
2002-08-16  7:05 ` Andrew Cagney
2002-08-16  9:09   ` Keith Seitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox