News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

GDB for CLI ineffective under Ubuntu 15.10.

Started by immortalsoFar, May 25, 2016, 10:53:50 PM

Previous topic - Next topic

immortalsoFar

Since using Code::blocks last, I upgraded to Ubuntu 15.10 from 14.04LTS, both running Gnome3 flashback and currently 3.17.2. I installed Code::Blocks 16.01 but the problem persists.
Starting Code::blocks from the command line (which used to be the only way to get CLI output) and then starting to debug, I get:
Option "-t" is no longer supported in this version of gnome-terminal.
Switching layout to "GDB/CDB debugger:Default"
warning: GDB: Failed to set controlling terminal: Operation not permitted

All of this seems (so far as I remember it) pretty standard other than the -t option problem.
It opens up a new terminal, ignores any breakpoints, sends the output to the original terminal and then terminates leaving the new terminal open. If I run it again, the output goes to the second terminal and yet another terminal opens. This repeats with the output going to the previously opened terminal and all debugging instructions (including step into or breakpoints) being ignored.
Any ideas or settings I need to change?

Thanks,

Mike.

oBFusCATed

Setting -> Environment -> General settings -> Terminal to launch -> Edit the parameter until it works again.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

immortalsoFar

Got the debugging working again (default values for tcc don't include -g in the linking option). Still working on the terminal issue (the terminals don't go away, either).