473,804 Members | 2,173 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Parsing Microsoft Debug Symbol Tables...

Mel
i have a need to access variables from outside of my applications. i
need to parse the compiler created symbol tables and store them so that
i can reference them later. these include C++ object handles,
variables, both static and otherwise.

can someone point me in the right direction
thanks

Dec 6 '05 #1
10 1923
Mel wrote:

i have a need to access variables from outside of my applications. i
need to parse the compiler created symbol
tables and store them so that
i can reference them later. these include C++ object handles,
variables, both static and otherwise.

can someone point me in the right direction


http://www.ungerhu.com/jxh/clc.welcome.txt

--
pete
Dec 6 '05 #2
Mel wrote:
i have a need to access variables from outside of my applications. i
need to parse the compiler created symbol tables and store them so that
i can reference them later. these include C++ object handles,
variables, both static and otherwise.

can someone point me in the right direction


The right direction is a Microsoft group, here we don't know what format
is used on Windows for storing such things in a symbol table.
--
Flash Gordon
Living in interesting times.
Although my email address says spam, it is real and I read it.
Dec 6 '05 #3
In article <a7************ @news.flash-gordon.me.uk>,
Flash Gordon <sp**@flash-gordon.me.uk> wrote:
Mel wrote:
i have a need to access variables from outside of my applications. i
need to parse the compiler created symbol tables and store them so that
i can reference them later. these include C++ object handles,
variables, both static and otherwise.

can someone point me in the right direction


The right direction is a Microsoft group, here we don't know what format
is used on Windows for storing such things in a symbol table.


The funny thing is - even though my first reaction to this was the usual
"Can't discuss it here", with, of course, the emotional-hot-button "M" word
being a major part of that - the fact is, that I think a program to parse
these files, whatever these files are, they are, presumably text files, and
for whatever definition of "parse" you want to use, could almost certainly
be written in Standard C.

Therefore, discussion of such a program would not be OT here.

Discussion of what to do with the output of such a program would still be
OT, of course.

Dec 6 '05 #4
Mel a écrit :
i have a need to access variables from outside of my applications. i
need to parse the compiler created symbol tables and store them so that
i can reference them later. these include C++ object handles,
variables, both static and otherwise.

can someone point me in the right direction
thanks

The right direction is to use dbghelp.dll, a dll provided
by microsoft for this purpose.

It has all you need to read microsoft debug info,
and it shields the application from changes in
the internal format.

The procedure to follow would be just to generate the
program data base (.pdb) and use that dll to read it.
jacob
Dec 6 '05 #5
Kenny McCormack wrote:
In article <a7************ @news.flash-gordon.me.uk>,
Flash Gordon <sp**@flash-gordon.me.uk> wrote:
Mel wrote:
i have a need to access variables from outside of my applications. i
need to parse the compiler created symbol tables and store them so that
i can reference them later. these include C++ object handles,
variables, both static and otherwise.

can someone point me in the right direction The right direction is a Microsoft group, here we don't know what format
is used on Windows for storing such things in a symbol table.


The funny thing is - even though my first reaction to this was the usual
"Can't discuss it here", with, of course, the emotional-hot-button "M" word
being a major part of that - the fact is, that I think a program to parse
these files, whatever these files are, they are, presumably text files, and
for whatever definition of "parse" you want to use, could almost certainly
be written in Standard C.


Yes, I agree. My problem is that we don't know what these formats are so
we certainly can't help in the first stage, which is finding out the
formats. This applies whether the files are text or binary. <fx: wanders
off for a look> they are binary. Although you could still process them
in standard C of course, given the format.
Therefore, discussion of such a program would not be OT here.
Agreed, given it is written in standard C and we are told what the
format is.
Discussion of what to do with the output of such a program would still be
OT, of course.


True.

I would also point out that Jacob is claiming there is a dll to do the
hard work, whether he is right or not and the details of how to use it
don't belong in this group, but IMHO it shows my intuition that
discussing it in a microsoft group would be better where they might know
about this dll.
--
Flash Gordon
Living in interesting times.
Although my email address says spam, it is real and I read it.
Dec 6 '05 #6
jacob navia wrote:
Mel a écrit :
i have a need to access variables from outside of my applications. i
need to parse the compiler created symbol tables and store them so that
i can reference them later. these include C++ object handles,
variables, both static and otherwise.

can someone point me in the right direction
thanks

The right direction is to use dbghelp.dll, a dll provided
by microsoft for this purpose.


<snip>

Jacob, could you please also redirect discussion of such non-standard
items to a group where they are topical rather than leaving the
discussion here.
--
Flash Gordon
Living in interesting times.
Although my email address says spam, it is real and I read it.
Dec 6 '05 #7
Mel
if you run an "nm" on your executable or "*.dll" files you will get
tons of info. They are binary, but obvousely nm can make sense of it,
why can't i ?

Dec 6 '05 #8
Flash Gordon wrote:
jacob navia wrote:
Mel a écrit :
i have a need to access variables from outside of my applications. i
need to parse the compiler created symbol tables and store them so that
i can reference them later. these include C++ object handles,
variables, both static and otherwise.

can someone point me in the right direction
thanks

The right direction is to use dbghelp.dll, a dll provided
by microsoft for this purpose.

<snip>

Jacob, could you please also redirect discussion of such non-standard
items to a group where they are topical rather than leaving the
discussion here.


I just say to him where he should look,
I did not further any discussion, but just proposed him how to
proceed.
Dec 6 '05 #9
Mel wrote:
if you run an "nm" on your executable or "*.dll" files you will get
tons of info. They are binary, but obvousely nm can make sense of it,
why can't i ?


Please provide context. See http://cfaj.freeshell.org/google/

If you provide a specification of the format, and your attempt to write
code to read it, we can help you with your code. However, we don't know
what the format is and people here are unlikely to want to bother
finding out if you can't be bothered to.
--
Flash Gordon
Living in interesting times.
Although my email address says spam, it is real and I read it.
Dec 6 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
3425
by: nospam | last post by:
All the documentation says that leaving an ASP.NET application in debug mode has a big performance hit. I can't detect any difference between debug and non-debug modes. Am I missing something or is the documentation wrong? I've been load testing an ASP.NET website (built in VS.NET 2003 in C#). I've used the ACT to generate heavy loads over several minutes. Debug or no debug produces almost identical performance results.
9
2001
by: dee | last post by:
Hi I'm about to upload my site and I have switched to release version. Is that enough or do I still need to disable <compilation defaultLanguage="vb" debug="true" /> the debug="true" in the .pdb file? Is the .pdb necessary for the release version? Thanks a bunch. Dara
5
6104
by: Bob Day | last post by:
VS 2003, vb.net... Is there a way to determine the line number currently executing in your code, so you can log this line number information (e.g. via trace)? Thanks! Bob Day
18
4883
by: Atara | last post by:
In my apllication I use the following code: '-- My Code: Public Shared Function strDate2Date(ByVal strDate As String) As System.DateTime Dim isOk As Boolean = False If (strDate Is Nothing) Then isOk = False ElseIf Not (strDate.Length() = 6) Then isOk = False
1
1285
by: Mel | last post by:
i have a need to access variables from outside of my applications. i need to parse the compiler created symbol tables and store them so that i can reference them later. these include C++ object handles, variables, both static and otherwise. something in the line of "nm" command can someone point me in the right direction thanks
9
4065
by: ankitdesai | last post by:
I would like to parse a couple of tables within an individual player's SHTML page. For example, I would like to get the "Actual Pitching Statistics" and the "Translated Pitching Statistics" portions of Babe Ruth page (http://www.baseballprospectus.com/dt/ruthba01.shtml) and store that info in a CSV file. Also, I would like to do this for numerous players whose IDs I have stored in a text file (e.g.: cobbty01, ruthba01, speaktr01, etc.)....
4
6425
by: Michael Meckelein | last post by:
Hello, Wondering, if C# (framework 2.0) does not support parsing DateTime timezones in three letter acronyms. I would like to parse date strings like "2005 Nov 01 11:58:47.490 CST -6:00" but it seems C# does not support the timezone letters (CST). I suppose to use the symbol ZZZ for the timezone letters, but MSDE pointed out that it is not supported in C#, isn't it?
27
3250
by: SQL Learner | last post by:
Hi all, I have an Access db with two large tables - 3,100,000 (tblA) and 7,000 (tblB) records. I created a select query using Inner Join by partial matching two fields (X from tblA and Y from tblB). The size of the db is about 200MBs. Now my issue is, the query has been running for over 3 hours already - I have no idea when it will end. I am using Access 2003. Are there ways to improve the speed performance? (Also, would the...
9
1447
by: seberino | last post by:
I understand that the web is full of ill-formed XHTML web pages but this is Microsoft: http://moneycentral.msn.com/companyreport?Symbol=BBBY I can't validate it and xml.minidom.dom.parseString won't work on it. If this was just some teenager's web site I'd move on. Is there any hope avoiding regular expression hacks to extract the data from this page?
0
10595
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10343
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10335
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10088
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9169
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7633
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5668
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4306
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3831
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.