This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Remove redundant condition checking.
- From: Pedro Alves <palves at redhat dot com>
- To: Yao Qi <yao at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 15 Jan 2013 21:18:48 +0000
- Subject: Re: [PATCH] Remove redundant condition checking.
- References: <1358242481-16288-1-git-send-email-yao@codesourcery.com>
On 01/15/2013 09:34 AM, Yao Qi wrote:
> Hi,
> Just find here is another redundant checking,
>
> if (lwp->bp_reinsert != 0) <-- [1]
> {
> if (debug_threads)
> fprintf (stderr, " pending reinsert at 0x%s\n",
> paddress (lwp->bp_reinsert));
>
> if (lwp->bp_reinsert != 0 && can_hardware_single_step ()) <-- [2]
>
> This patch is to remove the redundant one in [2].
That's fine, thanks.
--
Pedro Alves