This is the mail archive of the gdb-prs@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]

[Bug gdb/17778] New: binutils-gdb/bfd/elf32-nds32.c:8513: confused logic ?


https://sourceware.org/bugzilla/show_bug.cgi?id=17778

            Bug ID: 17778
           Summary: binutils-gdb/bfd/elf32-nds32.c:8513: confused logic ?
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: minor
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: dcb314 at hotmail dot com

[binutils-gdb/bfd/elf32-nds32.c:8513] -> [binutils-gdb/bfd/elf32-nds32.c:8515]:
(warning) Opposite conditions in nested 'if' blocks lead to a dead code block.

  if (addr < blank_t->offset + blank_t->size)
    {
      if (addr > blank_t->offset + blank_t->size)
        blank_t->size = addr - blank_t->offset;
    }
  else
    {

Suggest code rework.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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