bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/616] New: readelf doesn't add "cu_offset" for printing DW_


From: hjl at lucon dot org
Subject: [Bug binutils/616] New: readelf doesn't add "cu_offset" for printing DW_OP_call4 operand
Date: 22 Dec 2004 18:55:43 -0000

We have this for call4 (and other DW_OP_calls)

 case DW_OP_call4:
          printf ("DW_OP_call4: <%lx>", (long) byte_get (data, 4));
          data += 4;
          break;

It should really print byte_get(data,4)+cu_offset.. as done for DW_FORM_ref4
 
 case DW_FORM_ref4:
    case DW_FORM_data4:
      uvalue = byte_get (data, 4);
      data += 4;
      break;
...
    case DW_FORM_ref1:
    case DW_FORM_ref2:
    case DW_FORM_ref4:
    case DW_FORM_ref_udata:
      printf (" <%lx>", uvalue + cu_offset);
      break;

-- 
           Summary: readelf doesn't add "cu_offset" for printing DW_OP_call4
                    operand
           Product: binutils
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: binutils
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: hjl at lucon dot org
                CC: bug-binutils at gnu dot org


http://sources.redhat.com/bugzilla/show_bug.cgi?id=616

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]