Alex Rivera | Logout

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

Asked 2008-11-07T23:49:22.960
23

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?

Edit
Report

1 Answer

24

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.

answered 2008-11-08T01:36:01.700

Your Answer