http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58663

            Bug ID: 58663
           Summary: entry-value: missing DW_TAG_GNU_call_site for libasan
                    calls
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jan.kratochvil at redhat dot com
            Target: x86_64-unknown-linux-gnu

FAIL: gcc (GCC) 4.9.0 20131008 (experimental)

 <1><5b4>: Abbrev Number: 5 (DW_TAG_subprogram)
    <5b5>   DW_AT_name        : (indirect string, offset: 0x2d16): main 
    <5d1>   DW_AT_GNU_all_tail_call_sites: 1    
 <2><5d5>: Abbrev Number: 6 (DW_TAG_variable)
 <2><5e1>: Abbrev Number: 0

.s:
        movq    %rax, %rdi
        call    __asan_report_store1

In practice one does not see the passed values:
#4  0x000000000040f447 in __asan::__asan_report_store1 (addr=<optimized out>)
#5  0x000000000041aafe in main () at old/test9.c:4
(gdb) set debug entry-values 1
(gdb) print addr
DW_OP_GNU_entry_value resolving cannot find DW_TAG_GNU_call_site 0x41aafe in
main

Tried also -static-libasan, it does not / cannot help.

(I am not sure entry-values would be valid here if the call site was present.)

Reply via email to