Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to analyze a dump file from a Delphi DLL file?

I'm an escalation engineer on a product which use both C# and Delphi 2006 code.

In most cases C# issues are debugged with WinDbg and Delphi 2006 issues with EurekaLog.

But when the issue is a Delphi memory usage, EurekaLog doesn't give enough information to fix the issue, and the only thing I have for debug it is a full memory dump file.

I cannot (or I don't know how to) load the symbol file in WinDbg, because it is a .map file and not a .pdb file.

So my questions are:

  • How do I load the symbols from a .map file in WinDbg? (Converting .map to .pdb or other.)

  • Is there a tool to analyze the dump file for a Delphi application?

like image 377
Yann Avatar asked Aug 06 '09 09:08

Yann


People also ask

How do you read a memory DMP?

To help you analyze them, you can install Microsoft's debugging app WinDbg from the Microsoft Store. This helps you analyze the memory dump files and locate the stop code information. You can also use older tools like NirSoft BlueScreenView to quickly analyze the dump files created on your PC.


1 Answers

To convert from Map to Dbg symbols:
- Get Map2Dbg.exe from http://code.google.com/p/map2dbg/
- Put Map2dbg in the same folder as YourApp.exe and its map file
- Execute: map2dbg.exe YourApp.exe

You should get a YourApp.dbg file to use with Microsoft tools….

like image 126
Francesca Avatar answered Sep 18 '22 14:09

Francesca