This one?
LD_LIBRARY_PATH=.:
Command-line: /usr/bin/gdb -nx -fullname -quiet -args bin/Debug/1
Working dir : /home/mihai/Code::Blocks/1/
> set prompt >>>>>>cb_gdb:
Executing: xterm -T 'Program Console' -e sleep 81735
Executing: ps x -o tty,pid,command
Reading symbols from /home/mihai/Code::Blocks/1/bin/Debug/1...done.
(gdb) >>>>>>cb_gdb:
> show version
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
>>>>>>cb_gdb:
> set confirm off
>>>>>>cb_gdb:
> set width 0
>>>>>>cb_gdb:
> set height 0
>>>>>>cb_gdb:
> set breakpoint pending on
>>>>>>cb_gdb:
> set print asm-demangle on
>>>>>>cb_gdb:
> set unwindonsignal on
>>>>>>cb_gdb:
> set disassembly-flavor intel
>>>>>>cb_gdb:
> directory /home/mihai/Code::Blocks/1/
>>>>>>cb_gdb:
> tbreak "/home/mihai/Code::Blocks/1/tst.cpp:10"
Temporary breakpoint 1 ("/home/mihai/Code::Blocks/1/tst.cpp:10) pending.
Can't find member of namespace, class, struct, or union named "/home/mihai/Code::Blocks/1/tst.cpp:10"
>>>>>>cb_gdb:
Hint: try '"/home/mihai/Code::Blocks/1/tst.cpp:10<TAB> or '"/home/mihai/Code::Blocks/1/tst.cpp:10<ESC-?>
(Note leading single quote.)
PS result: ? 1974 ps x -o tty,pid,command
PS result: pts/0 1972 sleep 81735
TTY is[/dev/pts/0]
GetConsoleTTY[/dev/pts/0]ConsolePid[1971]
> tty /dev/pts/0
Queued:[tty /dev/pts/0]
>>>>>>cb_gdb:
> run
Program exited normally.
>>>>>>cb_gdb:
> quit