Author Topic: Is there a plugin which can find line number from crash address in c::b?  (Read 4155 times)

Offline huzhongshan

  • Multiple posting newcomer
  • *
  • Posts: 109
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.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
...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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline huzhongshan

  • Multiple posting newcomer
  • *
  • Posts: 109
any binary distributions? Cannot compile the source because lack of wxwidgets knowledge.

Offline Manolo

  • Multiple posting newcomer
  • *
  • Posts: 47
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