This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Implement post_event for Python scripts.
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Phil Muldoon <pmuldoon at redhat dot com>
- Cc: gdb-patches ml <gdb-patches at sourceware dot org>
- Date: Tue, 27 Jul 2010 09:29:56 -0700
- Subject: Re: [patch] Implement post_event for Python scripts.
- References: <4C45F0B0.5000903@redhat.com>
> +@findex gdb.post_event
> +@defun post_event event
> +Put @var{event}, a callable object taking no arguments, into
> +@value{GDBN}'s internal event queue. This callable will be invoked at
> +some later point, during @value{GDBN}'s event processing. Events
> +posted using @code{post_event} will be run in the order in which they
> +were posted; however, there is no way to know when they will be
> +processed relative to other events inside @value{GDBN}.
Would it be useful to provide an exemple of how this feature could
be used? It does not seem obvious, and I am not sure without reading
the GDB Manual that users are familiar with GDB's internal even queue...
--
Joel