This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Remove redundant condition checking.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]