(len % 1) != 0

Bin Chen binary.chen@gmail.com
Sun Feb 17 14:41:00 GMT 2008


Hi Daniel,

Is it a bug?

On Sun, Feb 17, 2008 at 10:12 PM, Eli Zaretskii <eliz@gnu.org> wrote:
> > Date: Sun, 17 Feb 2008 13:57:31 +0800
>  > From: "Bin Chen" <binary.chen@gmail.com>
>
>
> >
>  > Hello,
>  >
>  > In gdb/gdbserver/server.c,
>  >
>  > there is a line:
>  >
>  > if ((len % 1) != 0 || unhexify (mon, own_buf + 6, len / 2) != len / 2)
>  >
>  > I am curious that (len % 1) != 0 is always false, why put here?
>
>  It's probably a bug: they meant len % 2.
>



More information about the Gdb mailing list