<div dir="ltr"><div>Hi all,<br><br>Need your help.<br><br>I added some debug information to my code according to Kaleidoscope-9 sample and got stuck with a GDB error:<br><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">(gdb) info functions<br>invalid dwarf2 offset 1849950870<br></blockquote><div><br></div><div>My module is a DLL built with llc+ld toolchain. Target triple: 'i686-w64-mingw32'.<br>Looking this offset (1849950870 == 0x6e440296) in dwarfdump output of the dll gave the following:<br><br>0x00000296:   DW_TAG_base_type [10]  <br>                DW_AT_name [DW_FORM_strp]    ( .debug_str[0x0000068f] = "void")<br>                DW_AT_encoding [DW_FORM_data1]    (0x00)<br>                DW_AT_byte_size [DW_FORM_data1]    (0x00)<br>....<br>0x00000cf8:   DW_TAG_subprogram [16] *<br>                DW_AT_low_pc [DW_FORM_addr]    (0x000000006e384c30)<br>                DW_AT_high_pc [DW_FORM_data4]    (0x000002b4)<br>                DW_AT_frame_base [DW_FORM_exprloc]    (<0x1> 54 )<br>                DW_AT_name [DW_FORM_strp]    ( .debug_str[0x00001616] = "FB_FPUMP@HORIZONTAL")<br>                DW_AT_type [DW_FORM_ref_addr]    (<span style="color:rgb(204,0,0)"><span style="background-color:rgb(255,255,255)"><b>0x000000006e440296</b></span></span>)<br>                DW_<br>AT_external [DW_FORM_flag_present]    (true)<br><br></div><div><br></div><div>In the original object file the corresponding record was:<br><br>0x00000296:   DW_TAG_base_type [10]  <br>                DW_AT_name [DW_FORM_strp]    ( .debug_str[0x0000068f] = "void")<br>                DW_AT_encoding [DW_FORM_data1]    (0x00)<br>                DW_AT_byte_size [DW_FORM_data1]    (0x00)<br>....<br><br>0x00000cf8:   DW_TAG_subprogram [16] *<br>                DW_AT_low_pc [DW_FORM_addr]    (0x00000000000037e0)<br>                DW_AT_high_pc [DW_FORM_data4]    (0x000002b4)<br>                DW_AT_frame_base [DW_FORM_exprloc]    (<0x1> 54 )<br>                DW_AT_name [DW_FORM_strp]    ( .debug_str[0x00001616] = "FB_FPUMP@HORIZONTAL")<br>                DW_AT_type [DW_FORM_ref_addr]    (<span style="color:rgb(204,0,0)"><b>0x0000000000000296</b></span>)<br>                DW_AT_external [DW_FORM_flag_present]    (true)<br><br><br></div><div>There are lots of subprogram records like this.<br><br></div><div>Any ideas what may be done to fix that?<br><br>My debugger config:<br><div>GNU gdb (GDB) 7.10.1<br>This GDB was configured as "i686-w64-mingw32".<br></div>OS : Win7 64-bit<br><br>--<br></div><div>Best regards,<br></div><div>Alexey Zasenko<br></div><div><br></div></div></div>