On Mon, Oct 01, 2012 at 10:29:53AM +0200, Petr Machata wrote:
> [email protected] writes:
> 
> > --- a/sysdeps/linux-gnu/mipsel/trace.c
> > +++ b/sysdeps/linux-gnu/mipsel/trace.c
> > @@ -202,7 +202,14 @@ int mips_next_pcs(struct Process *proc, uint32_t pc, 
> > uint32_t *newpc)
> >                     newpc[nr++] = rx + ((pc + 4) & ~0x0fffffff);
> >                     break;
> >             default:
> > -           case 4:
> > +           case 4: /* BEQ  */
> > +                   if (itype_rs (inst) == itype_rt (inst)) {
> > +                           /* Compare the same reg for equality, always
> > +                            * follow the branch.  */
> > +                           newpc[nr++] = pc + 4 +
> > +                                   mips32_relative_offset (inst);
> > +                           break;
> > +                   }
> >             case 5:
> 
> If the fall-through is intentional, then it should be denoted with a
> comment such as /* Fall through.  */
> 
> (There are also spaces before parens in function calls.  I guess it's
> better to leave them as they are, now that I missed it the first time
> around.)
> 
> Otherwise both patches look fine, I'll apply when the above nit is
> corrected.

OK, thanks. I've sent a v2 adressing your comments (including the
space before parens).

Cheers

_______________________________________________
Ltrace-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/ltrace-devel

Reply via email to