473,327 Members | 2,055 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

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 1897
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
jacob navia wrote:
Flash Gordon wrote:
jacob navia wrote:
<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.


By posting an answer here without telling the OP where it should be
discussed then the person you are responding to is likely to think that
this is an acceptable place for the discussion.
--
Flash Gordon
Living in interesting times.
Although my email address says spam, it is real and I read it.
Dec 6 '05 #11

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

Similar topics

12
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...
9
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...
5
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
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)...
1
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...
9
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"...
4
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...
27
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...
9
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...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.