#1 2016-12-31 13:52:03

edwinsn
Member
Registered: 2010-07-02
Posts: 1,215

Convert addresses from log file to source code?

Hello ab,

I've log entry:

20161231 20242758 EXC   ESQLite3Exception {"ErrorCode":1,"SQLite3ErrorCode":"secERROR","Message":"Error SQLITE_ERROR (1) [Step] using 3.15.2 - cannot rollback - no transaction is active, extended_errcode=1"} at 0075FBA2  stack trace API 00751C33 0040A92C

How to convert the address shown in the log entry to source line position? I tried using the LogView.lpr log viewer, but it couldn't load it (raised error when loading the log file).

Thanks.


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

#2 2016-12-31 14:37:02

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,240
Website

Re: Convert addresses from log file to source code?

You need to have the .map file of the exact compiled .exe.
If you had put the .map or .mab compressed file together with the .exe, or appended to the .exe, you would have the source line position in the logs...

If you have the .map corresponding to the .exe, just
- launch LogView.exe on file,
- then click on the .map button
- select the .map or .mab file
- enter the hexadecimal addresses

Offline

#3 2016-12-31 15:16:37

edwinsn
Member
Registered: 2010-07-02
Posts: 1,215

Re: Convert addresses from log file to source code?

@ab, I see now, put the generated .mab file in the same folder as the .exe file, right? thanks!

Last edited by edwinsn (2016-12-31 15:19:29)


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

#4 2016-12-31 15:32:17

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,240
Website

Re: Convert addresses from log file to source code?

Yes as documented in http://synopse.info/files/html/Synopse% … #TITLE_624

You can also embed the information to the .exe using the map2map tool.

Offline

Board footer

Powered by FluxBB