• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Development Tools » TI C/C++ Compiler » TI C/C++ Compiler - Forum » DW_TAG_TI_ missing enumerations
Share
TI C/C++ Compiler
  • Forum
Options
  • Subscribe via RSS

DW_TAG_TI_ missing enumerations

DW_TAG_TI_ missing enumerations

This question is answered
Nathan Posey
Posted by Nathan Posey
on Jan 25 2011 13:11 PM
Prodigy230 points

Hello,

 

I am working on parsing the .out files to provide necessary debug info for us to analyze our systems postmortem. I am aware of the cg_tools and am using those and related information where possible. I am looking for what dwarf tag values of 0x4086 and 0x4087 are indicative of in the .out file? I was able to find all the other TI defined tag values in these two documents:

http://focus.ti.com/lit/an/spraab5/spraab5.pdf

http://processors.wiki.ti.com/index.php/The_Impact_of_DWARF_on_TI_Object_Files_Errata_(SPRAAB5)

 

But as you can see the values of 0x4086 and 0x4087 are missing. They appear many times in the actual .out file, here are some samples from our tool:

abbrevCode=e                 obj_offset=00000a72     info_offset=0001057c   remaining=24979

   tag = 4086 = User Defined                     child = 1 = DW_CHILDREN_yes    

      3 = DW_AT_name                          8 = c:\temp\agentemp-6\TI22410:L2:2:1295964974

   2003 = DW_AT_TI_begin_file                 8 = V:\spec_apps\Congo\Source\Dsp\RDebugger\src\DspTaskMonitorApp.cpp

   2004 = DW_AT_TI_begin_line                 b = 51

   2007 = DW_AT_TI_end_line                   b = 69

 

abbrevCode=f                 obj_offset=00000ae2     info_offset=000105ec   remaining=24867

   tag = 4087 = User Defined                     child = 0 = DW_CHILDREN_no     

     11 = DW_AT_low_pc                        1 = 0009d43d

     12 = DW_AT_high_pc                       1 = 0009d47d

 

Unfortunately ofd6x does not decode any user defined range values for the .out files which is what I was hoping for to resolve.

From what I can determine 0x4086 always contains line numbers and a child 0x4087 that has the low and high pc. The line numbers correspond to loop structures like while or for. I am looking for the actual TI designation for these tag values in the fashion they are given in the documents above if possible. In the meantime I guess 0x4086 as DW_TAG_TI_loop_structure for 0x4086 and DW_TAG_TI_loop_begin_end will work. Thanks for your time.

DWARF cg_xml c55x
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Archaeologist
    Posted by Archaeologist
    on Jan 25 2011 13:31 PM
    Mastermind40800 points

    0x4086 is "DW_TAG_TI_loop"

    0x4087 is "DW_TAG_TI_loop_range"

    "ofd6x -g" should give names to all tags that TI tools can emit, and it correctly gives names to these two tags for a simple test case.  What version of ofd6x are you using?

    DWARF OFD
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Nathan Posey
    Posted by Nathan Posey
    on Jan 25 2011 13:47 PM
    Prodigy230 points

    I am using Release Version 2.20.00. All user defined range tags are showing up in ofd6x as DW_TAG_TI_reserved_1, 2, 3, etc. even with the -g option.

     

    Here is some output:

     

        001351d7  16       DW_TAG_TI_reserved_1 (.text)

        001351d8              DW_AT_name          c:\temp\agentemp-1\TI74010:L15:1:1295534706

        00135204              DW_AT_TI_begin_file V:\file.cpp

        0013524c              DW_AT_TI_begin_line 217

        0013524e              DW_AT_TI_end_line   249

        00135250  12          DW_TAG_TI_reserved_2 (.text)

        00135251                 DW_AT_low_pc  0xa265d

        00135255                 DW_AT_high_pc 0xa2670

        00135259  12          DW_TAG_TI_reserved_2 (.text)

        0013525a                 DW_AT_low_pc  0xa26f2

        0013525e                 DW_AT_high_pc 0xa2713

    I downloaded cg_tools from http://processors.wiki.ti.com/index.php/Code_Generation_Tools_XML_Processing_Scripts

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Archaeologist
    Posted by Archaeologist
    on Jan 25 2011 14:16 PM
    Verified Answer
    Verified by Nathan Posey
    Mastermind40800 points

    Nathan Posey

    I am using Release Version 2.20.00.

    That's the version number for the cg_xml package.  It contains (for convenience) a copy of ofd6x, which has its own version.  The version of ofd6x in cg_xml 2.20.00 is 7.0.0A08284, and the version in the separate package "Optimized OFD" is 6.1.0A07115. 

    In any case, the problem here is that only TI-internal development versions of ofd6x decode those tags into "loop" and "loop_range".  For released versions of OFD, these are given as "reserved_1" and "reserved_2"

    OFD
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Nathan Posey
    Posted by Nathan Posey
    on Jan 25 2011 14:22 PM
    Prodigy230 points

    Sorry here's the ofd6x version confirming your response:

    D:\cg_xml\utils>ofd6x.exe --help

    TMS320C6x Object File Display           v7.0.0A08284

    Tools Copyright (c) 1996-2008 Texas Instruments Incorporated

     

    Thanks for the info on the TAG enumerations.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use