this happens, if all commands are entered manually:
Code: Select all
flynn@voyager ~/Programming/TestProj2/Debug $ gdb --command="/tmp/codelite_gdbinit.txt" --tty=/dev/pts/3 --interpreter=mi "./TestProj2"
=thread-group-added,id="i1"
~"GNU gdb (Gentoo 7.5.1 p2) 7.5.1\n"
~"Copyright (C) 2012 Free Software Foundation, Inc.\n"
~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n"
~"This GDB was configured as \"x86_64-pc-linux-gnu\".\nFor bug reporting instructions, please see:\n"
~"<http://bugs.gentoo.org/>...\n"
~"Reading symbols from /home/flynn/Programming/TestProj2/Debug/TestProj2..."
~"done.\n"
(gdb)
set unwindonsignal on
&"set unwindonsignal on\n"
^done
(gdb)
set breakpoint pending on
&"set breakpoint pending on\n"
^done
(gdb)
set width 0
&"set width 0\n"
^done
(gdb)
set height 0
&"set height 0\n"
^done
(gdb)
set print elements 200
&"set print elements 200\n"
^done
(gdb)
-break-insert -f "\"main.c:6\""
^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0000000000400575",func="main",file="/home/flynn/Programming/TestProj2/main.c",fullname="/home/flynn/Programming/TestProj2/main.c",line="6",times="0",original-location="main.c:6"}
(gdb)
-exec-arguments
^done
(gdb)
-exec-run
&"warning: GDB: Failed to set controlling terminal: Operation not permitted\n"
=thread-group-started,id="i1",pid="17219"
=thread-created,id="1",group-id="i1"
^running
*running,thread-id="all"
(gdb)
=library-loaded,id="/lib64/ld-linux-x86-64.so.2",target-name="/lib64/ld-linux-x86-64.so.2",host-name="/lib64/ld-linux-x86-64.so.2",symbols-loaded="0",thread-group="i1"
=library-loaded,id="linux-vdso.so.1",target-name="linux-vdso.so.1",host-name="linux-vdso.so.1",symbols-loaded="0",thread-group="i1"
&"warning: Could not load shared library symbols for linux-vdso.so.1.\nDo you need \"set solib-search-path\" or \"set sysroot\"?"
&"\n"
=library-loaded,id="/lib64/libc.so.6",target-name="/lib64/libc.so.6",host-name="/lib64/libc.so.6",symbols-loaded="0",thread-group="i1"
hello world
=breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0000000000400575",func="main",file="/home/flynn/Programming/TestProj2/main.c",fullname="/home/flynn/Programming/TestProj2/main.c",line="6",times="1",original-location="main.c:6"}
*stopped,reason="breakpoint-hit",disp="keep",bkptno="1",frame={addr="0x0000000000400575",func="main",args=[{name="argc",value="1"},{name="argv",value="0x7fffffffdf58"}],file="/home/flynn/Programming/TestProj2/main.c",fullname="/home/flynn/Programming/TestProj2/main.c",line="6"},thread-id="1",stopped-threads="all",core="1"
(gdb)
wtf's going on here? i never had this issue and i'm working a lot with codelite, on windows, on linux.