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

            Bug ID: 31898
           Summary: bug in processing DW_RLE_startx_endx
           Product: binutils
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: redp at mail dot ru
  Target Milestone: ---

code of display_debug_rnglists_list in dwarf.c looks like:
        case DW_RLE_startx_endx:
          READ_ULEB (begin, start, finish);
          READ_ULEB (end, start, finish);
          begin = fetch_indexed_addr ((begin * pointer_size)
                                      + debug_addr_section_hdr_len,
pointer_size);
          end   = fetch_indexed_addr ((begin * pointer_size)
                                      + debug_addr_section_hdr_len,
pointer_size);
          break;

after calling fetch_indexed_addr begin holds some real address and end should
be gathered with
end   = fetch_indexed_addr ((end * pointer_size)
                                      + debug_addr_section_hdr_len,
pointer_size);

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

Reply via email to