dump_syms.exe, PDB file and custom PE extension

237 views
Skip to first unread message

Vitaly Ovchinnikov

unread,
Jul 16, 2017, 1:36:49 AM7/16/17
to google-breakpad-discuss
Hi again,

Some of my DLL files have different extension - they use .plugin instead of .dll. All the debug information is stored in PDB files for them and when I call dump_syms.exe myfile.pdb I get an error, as dump_syms.exe cannot find the original EXE or DLL. I traced it down to PDBSourceLineWriter::FindPEFile() in src\common\windows\pdb_source_line_writer.cc where you have a fixed list of possible extensions: just EXE or DLL. I extended it with my own ones to get the things working here, but a more general fix would be much appreciated.

It would be really nice if I can specify the PE file to use with this PDB file to dump_syms.exe. Something like this:

dump_syms.exe myfile.pdb myfile.plugin

The optional parameter shouldn't break any workflow and will definitely help some of us :)

Cheers!


Ted Mielczarek

unread,
Jul 17, 2017, 3:03:09 PM7/17/17
to Vitaly Ovchinnikov, google-breakpad-discuss
Hi Vitaly,

The Windows dump_syms tool allows passing either a PDB file or an EXE/DLL file on the commandline:

EXE/DLL files contain info about how to find the matching PDB file, but unfortunately PDB files do not contain any info on how to find the matching binary file, so dump_syms simply tries to guess in that situation.

Regards,
-Ted

Vitaly Ovchinnikov

unread,
Jul 17, 2017, 4:57:38 PM7/17/17
to google-breakpad-discuss, vitaly.ov...@gmail.com, t...@mielczarek.org
Hello Ted,
 
EXE/DLL files contain info about how to find the matching PDB file, but unfortunately PDB files do not contain any info on how to find the matching binary file, so dump_syms simply tries to guess in that situation.

Exactly, that's why I suggest to add an optional third argument to dump_syms that points to the executable file for that given PDB. This doesn't look a big job and could save some time to some of us. 

Cheers!

Ted Mielczarek

unread,
Jul 17, 2017, 7:10:13 PM7/17/17
to Vitaly Ovchinnikov, google-breakpad-discuss
Hi Vitaly,

Did you read the first paragraph of my reply? You should be able to simply run `dump_syms.exe myfile.plugin` and it should work fine.

-Ted

Vitaly Ovchinnikov

unread,
Jul 17, 2017, 10:20:33 PM7/17/17
to google-breakpad-discuss, vitaly.ov...@gmail.com, t...@mielczarek.org
Hello Ted,

That's interesting. I was under impression that I tried that and it didn't work for me. Just tried it again and it works fine.
Will have a deeper look into that.

Cheers!
Reply all
Reply to author
Forward
0 new messages