[LLVMbugs] [Bug 23454] New: llvm-dwarfdump doesn't match OS X dwarfdump for DW_AT_location

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu May 7 21:06:54 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=23454

            Bug ID: 23454
           Summary: llvm-dwarfdump doesn't match OS X dwarfdump for
                    DW_AT_location
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: bruce.mitchener at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 14300
  --> https://llvm.org/bugs/attachment.cgi?id=14300&action=edit
LLVM IR file

Our compiler back-end emits LLVM bitcode directly.

We have a situation where we see a significant difference between the
llvm-dwarfdump and OS X dwarfdump output for a DW_AT_location on a
DW_TAG_formal_parameter:

                  DW_AT_location [DW_FORM_data4]    (0x00000000)

vs

                     AT_location( 0x00000000
                        0x0000000000000e40 - 0x0000000000000e4a: rdi
                        0x0000000000000e4a - 0x0000000000000e65: rbx )

More of the output from llvm-dwarfdump for context:

0x0000002a:   DW_TAG_subprogram [2] *
                DW_AT_low_pc [DW_FORM_addr]    (0x0000000000000e40)
                DW_AT_high_pc [DW_FORM_addr]    (0x0000000000000e8a)
                DW_AT_frame_base [DW_FORM_block1]    (<0x01> 56 )
                DW_AT_MIPS_linkage_name [DW_FORM_strp]    (
.debug_str[0x0000003e] = "KfibVfibI")
                DW_AT_name [DW_FORM_strp]    ( .debug_str[0x00000048] = "fib")
                DW_AT_decl_file [DW_FORM_data1]   
("/Users/bruce/Development/dylan/fib/fib.dylan")
                DW_AT_decl_line [DW_FORM_data1]    (6)
                DW_AT_type [DW_FORM_ref4]    (cu + 0x005d => {0x0000005d})
                DW_AT_external [DW_FORM_flag]    (0x01)
                DW_AT_accessibility [DW_FORM_data1]    (DW_ACCESS_public)

0x0000004d:     DW_TAG_formal_parameter [3]
                  DW_AT_location [DW_FORM_data4]    (0x00000000)
                  DW_AT_name [DW_FORM_strp]    ( .debug_str[0x0000004c] = "n")
                  DW_AT_decl_file [DW_FORM_data1]   
("/Users/bruce/Development/dylan/fib/fib.dylan")
                  DW_AT_decl_line [DW_FORM_data1]    (6)
                  DW_AT_type [DW_FORM_ref4]    (cu + 0x008a => {0x0000008a})

0x0000005c:     NULL

However, the OS X dwarfdump shows:

0x0000002a:     TAG_subprogram [2] *
                 AT_low_pc( 0x0000000000000e40 )
                 AT_high_pc( 0x0000000000000e8a )
                 AT_frame_base( rbp )
                 AT_MIPS_linkage_name( "KfibVfibI" )
                 AT_name( "fib" )
                 AT_decl_file( "/Users/bruce/Development/dylan/fib/fib.dylan" )
                 AT_decl_line( 6 )
                 AT_type( {0x0000005d} ( MV ) )
                 AT_external( 0x01 )
                 AT_accessibility( DW_ACCESS_public )

0x0000004d:         TAG_formal_parameter [3]
                     AT_location( 0x00000000
                        0x0000000000000e40 - 0x0000000000000e4a: rdi
                        0x0000000000000e4a - 0x0000000000000e65: rbx )
                     AT_name( "n" )
                     AT_decl_file(
"/Users/bruce/Development/dylan/fib/fib.dylan" )
                     AT_decl_line( 6 )
                     AT_type( {0x0000008a} ( dylan_value ) )

0x0000005c:         NULL

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150508/3bc7ff01/attachment.html>


More information about the llvm-bugs mailing list