Yes this topic is more than 120 days old but it is the only hit I got, searching for "cb_gdb: During startup program exited with code 1".
Do we want to scatter information about a single problem in more than one topic?
I think not, so:
I had the same error today, using gnome-terminal as a console and also in my case I could revert to xterm to solve the error.
My xterm line that works:
xterm -sl 10000000 -geometry 100x109 -T $TITLE -e
The console line that used to work but failed today:
gnome-terminal --geometry=75x100 --title=$TITLE -x
I would really like to use another terminal than xterm because copying text from xterm really doesn't work for me.
Can we give this old problem another look? It seems that gnome terminal and konsole cannot find the proper tty device in the /dev/ directory
The part of the log where it fails with gnome-terminal:
[debug]>>>>>>cb_gdb:
[debug]> tty /dev/?
[debug]>>>>>>cb_gdb:
[debug]> run
[debug]/dev/?: No such file or directory.
[debug]During startup program exited with code 1.
[debug]Starting program: /home/(deleted)
[debug]>>>>>>cb_gdb:
During startup program exited with code 1.
[debug]> quit
and when it succeeds with xterm:
[debug]>>>>>>cb_gdb:
[debug]> tty /dev/pts/1
[debug]>>>>>>cb_gdb:
[debug]> run
[debug]Starting program: /home/(deleted)
[debug][Inferior 1 (process 4904) exited normally]
[debug]>>>>>>cb_gdb:
[Inferior 1 (process 4904) exited normally]
[debug]> quit