Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6864103
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:52:10+00:00 2026-05-27T02:52:10+00:00

I’m currently dumping a lot of information from a PDB file I retrieve using

  • 0

I’m currently dumping a lot of information from a PDB file I retrieve using the DIA SDK to an XML file so that I can then use that information to display stuff about the structure of the project etc.

For naming the XML nodes, I have a trivial function that translates the value of the enum to a string which is then used for the node:

string symTagTypeToString(DWORD type) {

string symTagTypename = "";

switch(type) {
case SymTagNull:
    symTagTypename = "null";
    break;
case SymTagExe:
    symTagTypename = "exe";
    break;
case SymTagCompiland:
    symTagTypename = "compiland";
    break;
case SymTagCompilandDetails:
    symTagTypename = "compilandDetails";
    break;
case SymTagCompilandEnv:
    symTagTypename = "compilandEnvironmentVar";
    break;
case SymTagFunction:
    symTagTypename = "function";
    break;
case SymTagBlock:
    symTagTypename = "block";
    break;
case SymTagData:
    symTagTypename = "data";
    break;
case SymTagAnnotation:
    symTagTypename = "annotation";
    break;
case SymTagLabel:
    symTagTypename = "label";
    break;
case SymTagPublicSymbol:
    symTagTypename = "publicSymbol";
    break;
case SymTagUDT:
    symTagTypename = "userDefinedType";
    break;
case SymTagEnum:
    symTagTypename = "enumerator";
    break;
case SymTagFunctionType:
    symTagTypename = "functionType";
    break;
case SymTagPointerType:
    symTagTypename = "pointer";
    break;
case SymTagArrayType:
    symTagTypename = "array";
    break;
case SymTagBaseType:
    symTagTypename = "baseType";
    break;
case SymTagTypedef:
    symTagTypename = "typedef";
    break;
case SymTagBaseClass:
    symTagTypename = "baseClass";
    break;
case SymTagFriend:
    symTagTypename = "friend";
    break;
case SymTagFunctionArgType:
    symTagTypename = "functionArgumentType";
    break;
case SymTagFuncDebugStart:
    symTagTypename = "funcDebugStart";
    break;
case SymTagFuncDebugEnd:
    symTagTypename = "funcDebugEnd";
    break;
case SymTagUsingNamespace:
    symTagTypename = "usingNamespace";
    break;
case SymTagVTableShape:
    symTagTypename = "vTableShape";
    break;
case SymTagVTable:
    symTagTypename = "vTable";
    break;
case SymTagCustom:
    symTagTypename = "custom";
    break;
case SymTagThunk:
    symTagTypename = "thunk";
    break;
case SymTagCustomType:
    symTagTypename = "customType";
    break;
case SymTagManagedType:
    symTagTypename = "managedType";
    break;
case SymTagDimension:
    symTagTypename = "dimension";
    break;
default:
    ostringstream s;
    s << "other" << type;
    symTagTypename = s.str();
    break;
}

return symTagTypename;
}

This function encompasses all values listed here: http://msdn.microsoft.com/de-de/library/bkedss5f.aspx

Now, for dumping the DIA information, I basically just recurse down the children of all symbols I get using pGlobal->findChildren(SymTagUDT, NULL, nsCaseSensitive, &pIDiaEnumSymbols). The curious part is that the resulting XML contains a lot of stuff that looks like this:

<function name="consumer::main">
  <funcDebugStart name="unknown">
  </funcDebugStart>
  <funcDebugEnd name="unknown">
  </funcDebugEnd>
  <data name="">
  </data>
  <data name="">
  </data>
  <data name="">
  </data>
  <data name="this">
  </data>
  <data name="c">
  </data>
  <other31 name="unknown">
  </other31>
  <other31 name="unknown">
  </other31>
  <other31 name="unknown">
  </other31>
  <other31 name="unknown">
  </other31>
  <other31 name="unknown">
  </other31>
  <other31 name="unknown">
  </other31>
  <other31 name="unknown">
  </other31>
  <other31 name="unknown">
  </other31>
 </function>

Now, nevermind the empty name information and stuff, that’s all pretty unfinished so far. I’d just really like to know what kind of symbol has a symTag of 31. The enumerator seems to contain 31 elements, so values from 0 to 30 should be valid. Does anybody have any idea what this 31 could be? The function in question looks like this:

 void main()
 {
   char c;
   cout << endl << endl;

   while (true) {
     in->read(c);
     cout << c << flush;

     if (in->num_available() == 1)
   cout << "<1>" << flush;
     if (in->num_available() == 9)
   cout << "<9>" << flush;
   }
 }

It’s part of the SystemC fifo example project. Nothing too fancy, really.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T02:52:11+00:00Added an answer on May 27, 2026 at 2:52 am

    In the DIA SDK version that’s shipped with VS2010, the two SymTagEnum values SymTagCallSite and SymTagMax have been added (although they have not been included in the documentation yet). Although I still haven’t got really an idea about the semantics those values stand for, this definitely explains the values I’m getting.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are using XSLT to translate a RIXML file to XML. Our RIXML contains
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want use html5's new tag to play a wav file (currently only supported
In my XML file chapters tag has more chapter tag.i need to display chapters
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I am currently running into a problem where an element is coming back from
Does anyone know how can I replace this 2 symbol below from the string
I'm parsing an XML file, the creators of it stuck in a bunch social
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
link Im having trouble converting the html entites into html characters, (&# 8217;) i

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.