DWARFDUMPを諦めた

DWARFDUMPの出力がやけに短いと思ったら、解析が途中で止まっていました。orz

出力はこんな感じです。

ーーーーーーーーーーーーーーーーーーーーーーーーーーーーー

.debug_info

COMPILE_UNIT<header overall offset = 0x00000000>:
< 0><0x0000000b>  DW_TAG_compile_unit
                    DW_AT_stmt_list             0x00000000
                    DW_AT_producer              Microchip MPLAB XC8 Compiler v1.42
                    DW_AT_language              DW_LANG_C89
                    DW_AT_name                  C:\common\developement\Raspi-Pic\RaspiPic-1938.X\mcc_generated_files/pin_manager.c
                    DW_AT_low_pc                0x00000452
                    DW_AT_high_pc               0x0000046f

途中省略

< 1><0x00000344>    DW_TAG_subprogram
                      DW_AT_sibling               <0x00000377>
                      DW_AT_name                  i2c_put_into_ring_buff
                      DW_AT_external              yes(1)
                      DW_AT_decl_file             0x00000001
                      DW_AT_decl_line             0x00000049
                      DW_AT_low_pc                0x000005cd
                      DW_AT_high_pc               0x000005d6
                      DW_AT_inline                DW_INL_not_inlined
< 2><0x00000368>      DW_TAG_variable
                        DW_AT_name                  d
                        DW_AT_decl_file             0x00000001 C:\common\developement/Raspi-Pic/SRC/i2c_comm.c
                        DW_AT_decl_line             0x00000049
                        DW_AT_type                  <0x00000129>
                        
dwarfdump ERROR:  dwarf_get_loclist_c:  <==ここでエラーになったらしい  DW_DLE_DEBUG_LOC_SECTION_SHORT(194)

CU Name = C:\common\developement\Raspi-Pic/SRC/i2c_comm.c
CU Producer = Microchip MPLAB XC8 Compiler v1.42
DIE OFF = 0x00000368 GOFF = 0x00000415, Low PC = 0x000005bb, High PC = 0x000005c4

ーーーーーーーーーーーーーーーーーーーーーーーーーーーーー

xc32-readelf --debug-dumpなら最後まで解析できたので、インストールしたDWARFDUMPの利用は諦めることにします。