rainers / cv2pdb

converter of DMD CodeView/DWARF debug information to PDB files
Artistic License 2.0
466 stars 110 forks source link

MINGW32 usage #61

Closed atversky closed 4 years ago

atversky commented 4 years ago

Any advise on usage on MINGW32 produced exe? Used in follow way: cv2pdb Orig.exe New.exe New.pdb

Getting error: cannot add line number info to module New.pdb is created - cannot validate if correct New.exe - is not present

rainers commented 4 years ago

The error message indicates that the conversion process is aborted during line number emission, with the MS pdb writer rejecting some information. The resulting pdb is unlikely to be useful. Maybe the exe has some broken information or it uses some newer unsupported DWARF extensions.

If you can provide an example binary I might be able to figure out more.

atversky commented 4 years ago

Loaded ZIPPED exe into GDrive shared folder (download .zip_; rename to .zip, and extract exe): https://drive.google.com/drive/folders/1o8cv0pGx-SiBMzj_Jxvnux1ss2o_fzxh?usp=sharing

rainers commented 4 years ago

Sorry, but it seems the folder is empty.

atversky commented 4 years ago

You should login with you Google credentials. Where to upload the file? - it is 72MB.

atversky commented 4 years ago

Forked your repository. Pushed exe to Github. Try download from this location: https://github.com/atversky/cv2pdb/blob/master/test/artifacts/suricata.exe

rainers commented 4 years ago

As suspected the file uses DWARF4 line number infos. I have pushed a version that succeeds translating the debug info. Please give it a try.

atversky commented 4 years ago

Confirm, resolved. Thanks!


From: Rainer Schuetze notifications@github.com Sent: Friday, May 8, 2020 11:06:10 AM To: rainers/cv2pdb cv2pdb@noreply.github.com Cc: Alex Tversky tverskya@hotmail.com; Author author@noreply.github.com Subject: Re: [rainers/cv2pdb] MINGW32 usage (#61)

As suspected the file uses DWARF4 line number infos. I have pushed a version that succeeds translating the debug info. Please give it a try.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/rainers/cv2pdb/issues/61#issuecomment-625860392, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADJ7VEA3LEOL3JR7Z4NGFM3RQQNWFANCNFSM4M23567Q.