Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.dbg for a 64 bit executable #40

Closed
tim-lebedkov opened this issue Dec 11, 2018 · 6 comments
Closed

.dbg for a 64 bit executable #40

tim-lebedkov opened this issue Dec 11, 2018 · 6 comments

Comments

@tim-lebedkov
Copy link

I converted a .dbg file for a 64 bit executable to .pdb. The .pdb is 32 bit (DBI-Stream Machine = 332).

I guess this is why AMD uProf does not load the .pdb file. Does cv2pdb always create 32 bit .pdb from a .dbg file? Can a .dbg file be 64 bit? Could you please add an option to force the creation of a 64 bit .pdb?

@tim-lebedkov
Copy link
Author

BTW, thank you very much for this software!

@tim-lebedkov
Copy link
Author

tim-lebedkov commented Dec 11, 2018

The .dbg file is 64 bit. The values at offsets 4 and 5 are 0x64 and 0x86 respectively,

@rainers
Copy link
Owner

rainers commented Dec 11, 2018

I don't know much abiout DBG files, support for these has been added by @AlexWhiter. Maybe he can comment on 64-bit versions? Maybe only this line needs to be adapted: https://github.com/rainers/cv2pdb/blob/master/src/cv2pdb.cpp#L71

@tim-lebedkov
Copy link
Author

tim-lebedkov commented Dec 11, 2018

It seems hdr64 is never set in https://github.com/rainers/cv2pdb/blob/master/src/PEImage.cpp#L309 so that isX64() returns false. Would any of you have time to look into this?

@AlexWhiter
Copy link
Contributor

@tim-lebedkov
Could you please try to change DbiStreamHeader.Machine value in your PDB manually to check if uProf would load it?

@rainers
Copy link
Owner

rainers commented Dec 12, 2018

The machine type should now be set in the PDB as found in the DBG.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants