This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfc target-side break conditions 3/5 v2] GDB-side changes
- From: Pedro Alves <palves at redhat dot com>
- To: "Gustavo, Luis" <luis_gustavo at mentor dot com>
- Cc: Tom Tromey <tromey at redhat dot com>, gdb-patches at sourceware dot org
- Date: Thu, 09 Feb 2012 12:59:57 +0000
- Subject: Re: [rfc target-side break conditions 3/5 v2] GDB-side changes
- References: <4F230A13.9060400@mentor.com> <m3vcnjn1xa.fsf@fleche.redhat.com> <4F3107C2.2060400@mentor.com>
BTW,
On 02/07/2012 11:15 AM, Luis Gustavo wrote:
> +/* Returns true if BPT is a breakpoint of any kind. */
This is ambiguous, because "breakpoint" can mean all kinds of breakpoints,
watchpoints, tracepoints, whateverpoints.
Witness:
/* This is for all kinds of breakpoints. */
struct breakpoint
{
Best be a bit more explicit.
> +
> +extern int is_breakpoint (const struct breakpoint *bpt);
--
Pedro Alves