Code::Blocks Forums
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
As usual while waiting for the next release - don't forget to check the
nightly builds
in the forum.
Home
Help
Search
Login
Register
Code::Blocks Forums
»
User forums
»
General (but related to Code::Blocks)
»
Is there a plugin which can find line number from crash address in c::b?
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: Is there a plugin which can find line number from crash address in c::b? (Read 5143 times)
huzhongshan
Multiple posting newcomer
Posts: 110
Is there a plugin which can find line number from crash address in c::b?
«
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.
Logged
MortenMacFly
Administrator
Lives here!
Posts: 9723
Re: Is there a plugin which can find line number from crash address in c::b?
«
Reply #1 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.
Logged
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
huzhongshan
Multiple posting newcomer
Posts: 110
Re: Is there a plugin which can find line number from crash address in c::b?
«
Reply #2 on:
March 05, 2011, 01:44:19 pm »
any binary distributions? Cannot compile the source because lack of wxwidgets knowledge.
Logged
Manolo
Multiple posting newcomer
Posts: 47
Re: Is there a plugin which can find line number from crash address in c::b?
«
Reply #3 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
is what you are asking for.
Regards
Manolo
Logged
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
Code::Blocks Forums
»
User forums
»
General (but related to Code::Blocks)
»
Is there a plugin which can find line number from crash address in c::b?