Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: huzhongshan on March 05, 2011, 12:09:21 pm

Title: Is there a plugin which can find line number from crash address in c::b?
Post by: huzhongshan on March 05, 2011, 12:09:21 pm
I debug a dll with -O2 -g compiled , it crashed. I can get the crash address . Is there any plugin ( addr2line UI ) to find the line number .

BTW  I find that although I add -g , but I cannot find the line number by using addr2line.
Title: Re: Is there a plugin which can find line number from crash address in c::b?
Post by: MortenMacFly on March 05, 2011, 12:54:36 pm
...searching the forum for "addr2line UI" would have revealed this:
http://forums.codeblocks.org/index.php/topic,13129.0.html

Please respect our forum rules and search before you post.
Title: Re: Is there a plugin which can find line number from crash address in c::b?
Post by: huzhongshan on March 05, 2011, 01:44:19 pm
any binary distributions? Cannot compile the source because lack of wxwidgets knowledge.
Title: Re: Is there a plugin which can find line number from crash address in c::b?
Post by: Manolo on March 15, 2011, 09:21:31 pm
The way I do:
Instead of "run" your app, "start" it (debugger menu). When app crash, the debugger (I use gdb) breaks and show some error (like a non desired signal). Don't pulse any stop-button. Open the "call stack debugging window" and there you can see where it crashed.

If you use MinGW, perhaps this http://code.google.com/p/jrfonseca/wiki/DrMingw (http://code.google.com/p/jrfonseca/wiki/DrMingw) is what you are asking for.

Regards
Manolo