This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DWARF Information is corrupted

Other Parts Discussed in Thread: CODECOMPOSER

Hi community,

Im working on K2E EVM for a while. Using gmake(cygwin) to compile arm projects with optimize, on windows. Now, Im getting error to load project on CCS. "Encountered a problem loading file: project.out,, DWARF information is corrupted."

This error comes after out file load finished. If i close the error screen and run the code, its run successfuly but cant debug. I read that page: "gcc.gnu.org/gcc-4.8/changes.html". So i updated project makefile with "-gdwarf-2", "-gdwarf-3" but nothing changed. 

So I delete the "-g" line in makefile. When i clean build project, compiler.opt  has include "-g" too. So i delete "-g" here too and no-clean build project again. After all of that i can load project.out to arm, but cant debug (bcs compiler options has no longer include debugger options). This process takes a lot of time and takes away debug feature. 

How can i pass this DWARF error without losing debug feature?

Best Regards,

Srt

  • Exactly which ARM gcc compiler do you use?

    Go back to building with -g.  Please try the command ...

    $ objdump --dwarf project.out

    If that works fine, then problem could be in CCS. 

    Thanks and regards,

    -George

  • Hi George,

    Thank you for your response. I build project with "-g" option. I tried your commands. A lot of text printed on console with some warning, but no error occured.

    I tried your commands with almost same another project which working with "-g" option. The outputs is same. A lot of text printed on console with some warning, but no error occured.

    Is the problem about with CCS?

    Best Regards,

    Srt

  • Hello Srt,
    Sorry for the delay in response.

    That error message can be misleading since the root cause may not have anything to do with the debug symbols. Before I provide some suggestions, can you provide the full CCS version number being used. The version number format should look something like (ex: 6.1.1.00022).

    Thanks
    ki
  • Hi all,

    I tested exactly same loads with CCS v5.5.0.00077 and CCS v6.1.1.00022 . i saw the DWARF ERROR only with CCS v5.5.0.00077. So problem was about with CodeComposer. Im working CCS v6 anymore.

    Thank you George Mock and Ki-Soo Lee.

    Best Regards.

    Srt