User forums > General (but related to Code::Blocks)
GDB Compatibility Issues?
wd40bomber7:
Code::Blocks doesn't seem to be working with GDB. No idea why.
I have noticed the following issues:
Breakpoints never hit
clicking the i->loaded libraries opens a dialog saying "Undefined info command: "dll". Try "help info"."
console says "warning: GDB: Failed to set controlling terminal: Operation not permitted" however the console still appears to function.
I am using the latest version of Ubuntu for Desktops.
Also yes I'm using the debug compile, and it already has the -g option and non of the optimization options as far as I can tell.
Output from a debug session looks like this:
Building to ensure sources are up-to-date
Build succeeded
Selecting target:
Debug
Adding source dir: /home/apopelar/Documents/Code::Blocks/AutomaticAntenna/
Adding source dir: /home/apopelar/Documents/Code::Blocks/AutomaticAntenna/
Adding file: bin/Debug/AutomaticAntenna
Starting debugger:
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger name and version: GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2) 7.4-2012.04
Child process PID: 4878
Program received signal SIGINT, Interrupt.
In __kernel_vsyscall () ()
Debugger finished with status 0
oBFusCATed:
What C::B are you using? If it is not the latest nightly please try it. See the nightlies sub-forum for details.
Also please verify that running gdb from terminal works correctly.
Last thing: Rename your project's folder and remove the ::, they will mess the debugging, I guarantee that :)
wd40bomber7:
How could I use the latest nightly build if they don't release it for linux? All of the nightly builds I look at say
Linux:
none
Also yes, gdb works like a charm by itself. It's just dumb I can't used Code::Blocks.
Yes, I tried removing "::" that has no effect.
New information: I made the discovery that adding breakpoints works as long as its on the original main thread. I haven't the slightest clue why, but it won't hit breakpoints if they're running on a different thread. gdb by itself still works perfectly fine.
oBFusCATed:
Read the topic about the latest nightly, there is information in it how to install a nightly in ubuntu.
wd40bomber7:
You mean this topic stickied at the top of the Nightly Build Section?
http://forums.codeblocks.org/index.php/topic,3232.0.html
Doesn't mention linux/ubuntu
Or the latest nightly build?
http://forums.codeblocks.org/index.php/topic,16412.0.html
Just says Linux: none
Also someone mentions that they tried to compile it on linux, but I don't know where they got the source since the source provided is listed for windows explicitly.
Or this wiki article?
http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_nightly_build_on_Ubuntu
It says to go to the nightly builds and get the tarball, which as I've mentioned isn't there.
Or this wiki article?
http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Linux
It says to check the code out of the SVN http://www.codeblocks.org/downloads/7 which just gives a "connection refused" error when I try to do that
It also gives the option of downloading the source in tarball form, but its a very old tarball.
So, if you weren't talking about any of that, what were you talking about?
I'm sure the answer is obvious, but hopefully you can see my frustration as I looked for it.
Navigation
[0] Message Index
[#] Next page
Go to full version