[PATCH] Remove redundant condition checking.

Pedro Alves palves@redhat.com
Tue Jan 15 21:19:00 GMT 2013


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



More information about the Gdb-patches mailing list