On 07-03-19 08:55, Jakub Jelinek wrote: > On Thu, Mar 07, 2019 at 08:22:42AM +0100, Tom de Vries wrote: >> Hi, >> >> When processing a file containing an DW_AT_location with encoding DW_FORM_addr, > > What kind of generator generates that? Ugh. AFAICT it's the result of generating a .s file from a .c file and then hand-editing the debug info ( https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob;f=gdb/testsuite/gdb.dwarf2/dw2-restrict.S;h=7108b86ec109ce5a1bd299e2c36696a12024e0d5;hb=HEAD ): ... .byte 16 # DW_AT_stmt_list .byte 1 # DW_FORM_addr ... > Above you mention DW_AT_location (and in ChangeLog too), but the patch > actually handles DW_AT_stmt_list that way. So, which one it is? It's DW_AT_stmt_list. Updated patch attached. Thanks, - Tom