FYI: add user_breakpoint_p

Joel Brobecker brobecker@adacore.com
Tue Feb 1 03:05:00 GMT 2011


> >> -    if (!user_settable_breakpoint (tp) || tp->number < 0)
> >> +    if (! user_breakpoint_p (tp))
> 
> Joel> Do we agree on whether to write this as the above, or whether we should
> Joel> not have a space between the '!' and the expression being negated:
> 
> I have trouble remembering whether we have a rule here.
> I will remove the space.  It doesn't matter to me either way if we have
> it or not.

It doesn't matter to me either way, althought I have a slight preference
for no space.  I'd like us to agree and make a "soft" recommendation on
my wiki page about the GDB Coding Style.

-- 
Joel



More information about the Gdb-patches mailing list