[LLVMbugs] [Bug 9649] New: empty.o breaks dwarfdump

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Apr 7 16:08:50 PDT 2011


http://llvm.org/bugs/show_bug.cgi?id=9649

           Summary: empty.o breaks dwarfdump
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nlewycky at google.com
                CC: dpatel at apple.com, llvmbugs at cs.uiuc.edu


This program:

  int main(void) {
    return 0;
  }

when built by "clang -g -c" produces a .o file that dwarfdump isn't happy with:


.debug_info

COMPILE_UNIT<header overall offset = 0>:
<0><   11>      DW_TAG_compile_unit
                DW_AT_producer              clang version 3.0 (trunk 129027)
                DW_AT_language              DW_LANG_C99
                DW_AT_name                  empty.c
                DW_AT_entry_pc              0x0
                DW_AT_stmt_list             0x0
                DW_AT_comp_dir              /home/nlewycky

LOCAL_SYMBOLS:
<1><   86>      DW_TAG_base_type
                DW_AT_encoding              DW_ATE_signed
                DW_AT_name                  int
                DW_AT_byte_size             4
<1><   93>      DW_TAG_subprogram
                DW_AT_name                  main
                DW_AT_decl_file             1
                DW_AT_decl_line             1
                DW_AT_prototyped            yes(1)

                DW_AT_type                  <86>
                DW_AT_external              yes(1)
                DW_AT_low_pc                0x0
                DW_AT_high_pc               0xe
                DW_AT_frame_base            DW_OP_reg7
AT of 16359 (0x3fe7) is unknown to dwarfdump. Continuing. 
                <Unknown AT value 0x3fe7>   yes(1)

.debug_line: line number info for a single cu
dwarfdump ERROR:  dwarf_srclines:  DW_DLE_ATTR_FORM_BAD (114)

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list