tim-lebedkov / map2dbg

Automatically exported from code.google.com/p/map2dbg
0 stars 0 forks source link

Error running tds2pdb: .rdata section not found #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Ran tds2pdb dscdatasrv.tds 

The .pdb file was created but not sure if it's complete/correct/usable.

Version of tds2pdb is 1.0.1.1 dated 5/22/12 (tds2pdb102.zip).

OS: Win XP SP3

Error info:
C:\Win_proj\Source34_Rebuild_3.4.32\DSCDataSrv>tds2pdb dscdatasrv.tds
Error: .rdata section not found

Original issue reported on code.google.com by scott.hu...@gmail.com on 23 May 2012 at 5:19

Attachments:

GoogleCodeExporter commented 9 years ago
.rdata is needed in .exe files for debug info
don´t know how to do this for a dll file

please try to see if it works (e.g. process explorer, stack view)

Original comment by andre.mussche on 23 May 2012 at 5:57

GoogleCodeExporter commented 9 years ago
Got the same converting a TDS from a Dll under XP SP3. Trying now under process 
monitor and it's not working. 

Configured symbol path in ProcMon is: 
C:\MySyms;srv*C:\MSSymbols*http://msdl.microsoft.com/download/symbols

I copied the .PDB file to the mysyms and MSSymbols directory and Procmon cannot 
resolve the adresses.

Original comment by rniest...@gmail.com on 18 Jun 2012 at 1:59

GoogleCodeExporter commented 9 years ago
hmm probably because it cannot find a reference to a .pdb file in the dll
this needs some investigation...

Original comment by andre.mussche on 18 Jun 2012 at 2:03

GoogleCodeExporter commented 9 years ago
Today i found out that the PDB generated from the DLL works in process explorer 
but is not working in Process Monitor. Windows 7 Enterprise x64. Both symbol 
paths in procmon and procexp are configured the same. Procexp is showing 
function names when opening the stack for the exe using my dll.

Original comment by rniest...@gmail.com on 19 Jun 2012 at 10:25

GoogleCodeExporter commented 9 years ago
Any news about this problem? 
I try to use v.1.0.3 and get such error (.rdata section not found). 
VTune doesn't validate resulting PDB file :(

Original comment by alexey.k...@gmail.com on 15 Oct 2013 at 2:58

GoogleCodeExporter commented 9 years ago
you could try to add the missing ".rdata" section manually with CFF Explorer 
(http://www.ntcore.com/exsuite.php).

Then load .dll, select "section headers" in the tree on the left
Right mouse click on grid on the right -> add section (header only) and name it 
.rdata
Last but not least: save :)

Hopefully tds2pdb will work after this (please let me know)

Original comment by andre.mussche on 21 Oct 2013 at 2:04

GoogleCodeExporter commented 9 years ago
Andre, after that i have another error:
"Error: crossing section alignment boundary, relocation required, not 
implemented"

Functions of CGG Explorer "Rebuild image size", "Rebuild PE Header" doesn't 
help.
"PE Explorer" and its function "Remove relocations" doesnt' help too.

Original comment by alexey.k...@gmail.com on 24 Oct 2013 at 6:36

GoogleCodeExporter commented 9 years ago
can you send me the executable and map file? (andre.mussche@gmail.com)

Original comment by andre.mussche on 24 Oct 2013 at 6:52