News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Is there a plugin which can find line number from crash address in c::b?

Started by huzhongshan, March 05, 2011, 12:09:21 PM

Previous topic - Next topic

huzhongshan

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.

MortenMacFly

...searching the forum for "addr2line UI" would have revealed this:
http://forums.next.codeblocks.org/index.php/topic,13129.0.html

Please respect our forum rules and search before you post.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

huzhongshan

any binary distributions? Cannot compile the source because lack of wxwidgets knowledge.

Manolo

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 is what you are asking for.

Regards
Manolo