Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: MortenMacFly on August 18, 2010, 05:05:01 pm

Title: Debugging made easier
Post by: MortenMacFly on August 18, 2010, 05:05:01 pm
Hi all,

for my own needs I developed a tiny UI for the addr2line tool to analyse crash reports as they are produced by applications like Code::Blocks (using the exchndl.dll). It scans the created report ("*.rpt") and resolves all adresses possible using all crash logs available in this very file (there might be multiple crashes appended after each other). I attach the sources to this post for convenience and probably to help debugging C::B.

Notice: For this to work you'll need to have your application compiled with debug symbols. However, for the case you are running a stripped version, but have the version with debug symbols as reference I allow to replace the path accordingly.

In my case I need to replace "C:\Devel\CodeBlocks\" with "C:\Devel\CodeBlocks\src\devel\", as in the latter there is the compiled version of C::B with debug symbols

It maybe of use for other devs, too.

Note: This is WINDOWS ONLY. Under Linux, the crash log looks different (a XML file) feel free to enhance this as you like, but don't forget to post the modifications here and don't make money out of it... GPL3 you know...! ;-) :lol:
Title: Re: Debugging made easier
Post by: oBFusCATed on August 18, 2010, 05:24:17 pm
... and don't make money out of it... GPL3 you know...! ;-) :lol:
GPL, do not forbid making money, just forbids binary only distribution! :)
Title: Re: Debugging made easier
Post by: ollydbg on September 16, 2010, 01:53:53 pm
This is a very nice tool. (I missed this post, and luckily I find it now :D)
Title: Re: Debugging made easier
Post by: MortenMacFly on September 16, 2010, 06:53:41 pm
This is a very nice tool. (I missed this post, and luckily I find it now :D)
It has a tiny bug when restoring the settings though... This and That are either not correctly restored or saved (I don't recall ATM...).
Title: Re: Debugging made easier
Post by: Loaden on September 17, 2010, 07:16:09 am
Well done!
Thanks for sharing! :D
Title: Re: Debugging made easier
Post by: Pecan on September 17, 2010, 03:43:33 pm
Cool tool. And a real time saver.
Thanks