This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA/sparc] Add handling of stack-check probes
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 29 Mar 2007 06:20:58 +0200
- Subject: Re: [RFA/sparc] Add handling of stack-check probes
- References: <20070328225013.GN3866@adacore.com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Wed, 28 Mar 2007 15:50:13 -0700
> From: Joel Brobecker <brobecker@adacore.com>
>
> PS: Do other people think that it is simpler for the human brain to understand
> if (pc >= current_pc)
> than
> if (current_pc <= pc)
>
> In other words, the boundary value is put on the rhs of the condition,
> and the variable value is put on the lhs... It's just an aesthetic
> consideration, but I can change it if others agree.
I prefer the variable to be on the left and the boundary on the right.
The only case where it is justified to reverse the order is when you
use ==, to avoid the frequent typo that uses only one `='.