From: Tom Tromey <tromey@redhat.com>
To: pmuldoon@redhat.com
Cc: Doug Evans <dje@google.com>, gdb-patches@sourceware.org
Subject: Re: [patch] [python] Implement stop_p for gdb.Breakpoint
Date: Fri, 11 Mar 2011 18:27:00 -0000 [thread overview]
Message-ID: <m3r5ad5z8o.fsf@fleche.redhat.com> (raw)
In-Reply-To: <m3wrk5antr.fsf@redhat.com> (Phil Muldoon's message of "Fri, 11 Mar 2011 11:39:12 +0000")
>>>>> "Phil" == Phil Muldoon <pmuldoon@redhat.com> writes:
Phil> Here is the latest patch. I've added the mutual exclusion to setting
Phil> the CLI condition and the Python method. I renamed the method to
Phil> 'stop'. Plus all the other review comments regarding the #HAVE Python
Phil> defines . I included some changes from the branch that alter how
Phil> breakpoints are initialized (the tests require those changes).
Thanks.
Phil> + error (_("Cannot set a condition where a Python 'stop' " \
No backslash.
Phil> +If this method is defined as a sub-class of @code{gdb.Breakpoint},
Phil> +it will be called when the inferior stops at any location of a
Phil> +breakpoint which instantiates that sub-class. If the method returns
Phil> +@code{True}, the inferior will be stopped at the location of the
Phil> +breakpoint, otherwise the inferior will continue.
The repeated use of "stops" here makes it read a little strangely. I
think it should use "reaches" first, like "... when the inferior reaches
any location of a ...".
Phil> +/* Function that is called when a Python condition is evaluated. */
Phil> +char *stop_func = "stop";
`static const'
Phil> diff --git a/gdb/python/python.c b/gdb/python/python.c
Phil> index 3b10d8c..2d7213a 100644
Phil> --- a/gdb/python/python.c
Phil> +++ b/gdb/python/python.c
Phil> @@ -30,6 +30,7 @@
Phil> #include "exceptions.h"
Phil> #include "event-loop.h"
Phil> #include "serial.h"
Phil> +#include "python.h"
You should remove the other inclusion of python.h.
Ok with the above changes. Thanks again.
Tom
next prev parent reply other threads:[~2011-03-11 18:11 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-23 16:33 Phil Muldoon
2011-02-23 18:05 ` Eli Zaretskii
2011-02-24 7:02 ` Doug Evans
2011-02-24 9:50 ` Phil Muldoon
[not found] ` <AANLkTikXyH+zYkFRoUmihmDYj_nxU5648UnF5T9G-Wte@mail.gmail.com>
2011-02-28 21:19 ` Doug Evans
2011-03-07 16:43 ` Phil Muldoon
2011-03-07 20:52 ` Tom Tromey
2011-03-10 6:47 ` Doug Evans
2011-03-11 1:55 ` Tom Tromey
2011-03-11 11:59 ` Phil Muldoon
2011-03-11 18:27 ` Tom Tromey [this message]
2011-03-11 20:59 ` Doug Evans
2011-03-13 22:28 ` Phil Muldoon
2011-03-14 14:49 ` Tom Tromey
2011-03-14 17:56 ` Phil Muldoon
2011-03-14 20:01 ` Tom Tromey
2011-03-14 21:27 ` Eli Zaretskii
2011-03-11 18:36 ` Tom Tromey
2011-03-07 22:01 ` Tom Tromey
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=m3r5ad5z8o.fsf@fleche.redhat.com \
--to=tromey@redhat.com \
--cc=dje@google.com \
--cc=gdb-patches@sourceware.org \
--cc=pmuldoon@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