Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Given a crash offset, .PDB, and source, how can I find the source line?

I have a Windows Event Log entry giving the offset of the failed call triggering an application crash. I have a release build, the corresponding .PDB file, and the source.

I do not have a .MAP or .COD file.

How can I find the failing source line?

like image 400
Aidan Ryan Avatar asked Nov 07 '08 23:11

Aidan Ryan


1 Answers

WinDbg has an ln command that will give you the nearest symbol of an address.

Open your binary using:

WinDbg -z somebin.dll

And in the command window, type:

ln <address>

Once you find the function it's in, run

uf somebin!SomeFunc

to find the closest line to the address.

like image 177
Ana Betts Avatar answered Oct 20 '22 06:10

Ana Betts