public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/13355] New: elf32-rx.c: 2 * bad comparison
@ 2011-10-28 9:58 dcb314 at hotmail dot com
0 siblings, 0 replies; only message in thread
From: dcb314 at hotmail dot com @ 2011-10-28 9:58 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=13355
Bug #: 13355
Summary: elf32-rx.c: 2 * bad comparison
Product: gdb
Version: 7.3
Status: NEW
Severity: normal
Priority: P2
Component: gdb
AssignedTo: unassigned@sourceware.org
ReportedBy: dcb314@hotmail.com
Classification: Unclassified
I just ran the static analysis tool, cppcheck, over the source code
of gdb-7.3.50.20110722. It said
1.
[gdb-7.3.50.20110722/bfd/elf32-rx.c:2053]: (style) Mismatching comparison, the
result is always true]
The source code is
&& (insn[0] & 0x30) != 3
Perhaps
&& (insn[0] & 0x30) != 0x30
was intended.
2.
[gdb-7.3.50.20110722/bfd/elf32-rx.c:2157]: (style) Mismatching comparison, the
result is always true]
Duplicate.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-10-28 9:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-28 9:58 [Bug gdb/13355] New: elf32-rx.c: 2 * bad comparison dcb314 at hotmail dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).