This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: (len % 1) != 0
- From: Eli Zaretskii <eliz at gnu dot org>
- To: "Bin Chen" <binary dot chen at gmail dot com>
- Cc: gdb at sourceware dot org
- Date: Sun, 17 Feb 2008 09:12:40 -0500
- Subject: Re: (len % 1) != 0
- References: <5800c1cc0802162157g3ac31acas4ae95585b9b2e263@mail.gmail.com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> 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.