473,395 Members | 1,742 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,395 software developers and data experts.

VS2005 - Manually loading debug symbols

I am attempting to manually load debug symbols for a module. I am doing
it by carrying out the ff steps:

i). Select the call stack window
ii). right click and select 'Load Symbols' from displayed menu
iii). The Find Symbols: MyModule.pdb dialog box is displayed

However, when I navigate to and select the correct pdb file
(myModule.pdb), an error message is displayed with the message:

"The symbol myModule.pdb does not match the module"

I have rebuilt all modules and relinked without any errors - so I can't
explain whats happening - any ideas ?

Mar 27 '07 #1
7 15648
I am attempting to manually load debug symbols for a module. I am doing
it by carrying out the ff steps:

i). Select the call stack window
ii). right click and select 'Load Symbols' from displayed menu
iii). The Find Symbols: MyModule.pdb dialog box is displayed

However, when I navigate to and select the correct pdb file
(myModule.pdb), an error message is displayed with the message:

"The symbol myModule.pdb does not match the module"

I have rebuilt all modules and relinked without any errors - so I can't
explain whats happening - any ideas ?
In Modules window (Debug | Windows | Modules) check the path
to that module. Is it loaded from the correct location?

--
Oleg
[VC++ MVP http://www.debuginfo.com/]

Mar 27 '07 #2


Oleg Starodumov wrote:
>>I am attempting to manually load debug symbols for a module. I am doing
it by carrying out the ff steps:

i). Select the call stack window
ii). right click and select 'Load Symbols' from displayed menu
iii). The Find Symbols: MyModule.pdb dialog box is displayed

However, when I navigate to and select the correct pdb file
(myModule.pdb), an error message is displayed with the message:

"The symbol myModule.pdb does not match the module"

I have rebuilt all modules and relinked without any errors - so I can't
explain whats happening - any ideas ?


In Modules window (Debug | Windows | Modules) check the path
to that module. Is it loaded from the correct location?

--
Oleg
[VC++ MVP http://www.debuginfo.com/]
Hi Oleg,

The location is cotrrect, but the symbols are not loaded - when I look
in the Symbol Load information window, I get the message: #
"PDB does not match image"

this is what I don't understand, since all the modules have been
correctly built and linked to each other - with no errors.

One thing that may be of note however, is that I have defined Post build
events, that copy the binaries (i.e. dll etc) from the ./debug directory
to a %WorkingDirectory% the *.pdb files remain in the ./Debug directory.
This is the same for all the modules, so that only the executable images
are in %WorkingDirectory% - I don't know if this is the reason why VS is
getting confused?
Mar 27 '07 #3
The location is cotrrect, but the symbols are not loaded - when I look
in the Symbol Load information window, I get the message: #
"PDB does not match image"

this is what I don't understand, since all the modules have been
correctly built and linked to each other - with no errors.

One thing that may be of note however, is that I have defined Post build
events, that copy the binaries (i.e. dll etc) from the ./debug directory
to a %WorkingDirectory% the *.pdb files remain in the ./Debug directory.
This is the same for all the modules, so that only the executable images
are in %WorkingDirectory% - I don't know if this is the reason why VS is
getting confused?
VS should be able to handle it (path to the .pdb file is stored
in the executable, so it should be possible to find it).

In Modules window, r-click on the module and choose Symbol Load Information -
it should show where VS was looking for symbols. Did it look in the location
where the pdb file is?

Also, check the timestamps of the executable module and of the pdb file.
Are they the same?

Also, does the post build event only copies the executables? Or does it
modify them somehow?

Oleg


Mar 27 '07 #4


Oleg Starodumov wrote:
>>The location is cotrrect, but the symbols are not loaded - when I look
in the Symbol Load information window, I get the message: #
"PDB does not match image"

this is what I don't understand, since all the modules have been
correctly built and linked to each other - with no errors.

One thing that may be of note however, is that I have defined Post build
events, that copy the binaries (i.e. dll etc) from the ./debug directory
to a %WorkingDirectory% the *.pdb files remain in the ./Debug directory.
This is the same for all the modules, so that only the executable images
are in %WorkingDirectory% - I don't know if this is the reason why VS is
getting confused?


VS should be able to handle it (path to the .pdb file is stored
in the executable, so it should be possible to find it).

In Modules window, r-click on the module and choose Symbol Load Information -
it should show where VS was looking for symbols. Did it look in the location
where the pdb file is?
Yes. the search paths include the folder containing the required (newly
built) pdb file
>
Also, check the timestamps of the executable module and of the pdb file.
Are they the same?
I rebuilt all the modules in the solution (i.e. the entire solution).
Rebuilt solution with no errors. No linkage warning either. Regarding
timestamps - they are slightly different, but tahts because the modules
are large, and it takes a while to build each module. In this particular
case, the timestamps of the images (binaries) is a red hering (i.e.
not useful)
Also, does the post build event only copies the executables? Or does it
modify them somehow?
Yes, I only copy the executables to a working directory. I do not modify
them in anyway. Also, all the debug files are left behind in their
original folder.

>
Oleg

Mar 27 '07 #5
Also, check the timestamps of the executable module and of the pdb file.
Are they the same?

I rebuilt all the modules in the solution (i.e. the entire solution).
Rebuilt solution with no errors. No linkage warning either. Regarding
timestamps - they are slightly different, but tahts because the modules
are large, and it takes a while to build each module. In this particular
case, the timestamps of the images (binaries) is a red hering (i.e.
not useful)
Try to use this tool to check if the exe/pdb really match or not:
http://www.debuginfo.com/tools/chkmatch.html

You can also try to use it to enforce the matching if necessary
(it is better to have Edit & Continue disabled in the projects
if you are going to do that).

Oleg


Mar 27 '07 #6


Oleg Starodumov wrote:
>>>Also, check the timestamps of the executable module and of the pdb file.
Are they the same?

I rebuilt all the modules in the solution (i.e. the entire solution).
Rebuilt solution with no errors. No linkage warning either. Regarding
timestamps - they are slightly different, but tahts because the modules
are large, and it takes a while to build each module. In this particular
case, the timestamps of the images (binaries) is a red hering (i.e.
not useful)


Try to use this tool to check if the exe/pdb really match or not:
http://www.debuginfo.com/tools/chkmatch.html

You can also try to use it to enforce the matching if necessary
(it is better to have Edit & Continue disabled in the projects
if you are going to do that).

Oleg
Hi Oleg, I'm still not having any joy on this issue. Additionally, the
link you sent is dead - anyone knows how I can resolve this?. It seems
weird that images from the same build process, appear not to be related
--- what gives ?
Mar 30 '07 #7
Hi Oleg, I'm still not having any joy on this issue. Additionally, the
link you sent is dead - anyone knows how I can resolve this?. It seems
weird that images from the same build process, appear not to be related
--- what gives ?
Try again that link, it should work.

Oleg


Mar 30 '07 #8

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

Similar topics

4
by: Matt Sawyer | last post by:
I am attempting to use an API (CxApiOem.dll) that has a large number of defines and complicated structs. It's just too much hassle to attempt to use DLLImport to make the desired API calls. ...
1
by: Eric Hirst | last post by:
I have a Visual Studio Solution .sln which contains multiple projects, including an ODBC driver .dll and a client .exe. The client .exe is a simple MFC query tool. Nothing I can find in the...
0
by: dioscuroi | last post by:
When I call OCI (Oracle Call Interface) functions in Debug mode of VC+ 7.0, it takes too much time to load oracle debug symbols, and finall failed. Error messages are printed in output window, just...
1
by: Andrew Ducker | last post by:
I'm trying to load an assembly into a temporary AppDomain rather than my main AppDomain, so that it can be unloaded later on. However, it's also loading into my main AppDomain at the same time. ...
3
by: Doug | last post by:
I'm having problems w/ the VS2005 debugger with C#. It blows past any breakpoints in even the simplest "Hello World" console application. I can't do any step-by-step debugging. I've provided the...
7
by: Joseph Geretz | last post by:
I've been working on an Addin for Outlook in C#. It hasn't been long now, just a couple of days. Suddenly though, running my project in Debug launches Outlook as specified, but no breakpoints...
2
by: Dinh Bao Tuyen | last post by:
Hi everyone, I can't debug javascript in VS 2005. In my VS2005, I can't find Script Explorer in menu. Can u help me???
3
by: Bardo | last post by:
Hi all, We are trying to debug an assembly which was built in debug configuration on our build server. The output window of visual studio indicates that no symbols are being loaded for the...
4
by: Mr Gray | last post by:
Hello, I am using VS.NET 2003 and have multiple projects in my solution and an asp.net web app which is the startup project. I have inherited this project from someone else and am trying to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...
0
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...
0
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...

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.