AnsweredAssumed Answered

ELF/DWARF: Debug Info has empty location info for formal parameters of functions

Question asked by Juerg Zgraggen on May 16, 2017
Latest reply on May 23, 2017 by ZhangJennie

We are using CW 5.1 for HCS12X and want to debug/test our code with winIDEA and testIDEA from iSystem. Neither of them work on parameters of functions. The support team of iSystem told us that there is missing location information in the debug info (see example). Therefore they are not able to get the actual values of function parameters at run time to show in the debugger or to check expectations during test runs.


Does anyone know how to enable this information in the ELF data?


debug info sample :

 <3><7fe6e>: Abbrev Number: 4 (DW_TAG_formal_parameter)
    <7fe6f>   DW_AT_location    : 0 byte block:     ()    <-------- empty location info
    <7fe71>   DW_AT_decl_file   : 29   
    <7fe72>   DW_AT_decl_line   : 58   
    <7fe73>   DW_AT_decl_column : 40   
    <7fe74>   DW_AT_name        : u16DopValue   
    <7fe80>   DW_AT_external    : 0   
    <7fe81>   DW_AT_declaration : 0   
    <7fe82>   DW_AT_type        : <0x738b5>