i wrote a hello world program:
Code: Select all
#include <stdio.h>
int main(int argc, char **argv)
{
* printf("hello world\n");
return 0;
}
i'm using gnu/linux gentoo, codelite is self compiled.i pulled the newest version of codelite from git: version 5.3Debugger exited with the following error string:
"During startup program exited normally."
gdb version: GNU gdb (Gentoo 7.5.1 p2) 7.5.1
i have the same installation on my other laptop, which is running/debugging fine, i did check/compare all switches and cannot find any differences.
here is my full debug log:
Code: Select all
Using gdbinit file: /tmp/codelite_gdbinit.txt
Current working dir: /home/flynn/Programming/TestProj1
Launching gdb from : ./Debug
Starting debugger : gdb --command="/tmp/codelite_gdbinit.txt" --tty=/dev/pts/4 --interpreter=mi "./TestProj1"
DEBUG>>set unwindonsignal on
DEBUG>>set breakpoint pending on
DEBUG>>set width 0
DEBUG>>set height 0
DEBUG>>set print elements 200
DEBUG>>python
DEBUG>>import sys
DEBUG>>sys.path.insert(0, '/home/flynn/.codelite/gdb_printers')
DEBUG>>from libstdcxx.v6.printers import register_libstdcxx_printers
DEBUG>>register_libstdcxx_printers (None)
DEBUG>>from qt4 import register_qt4_printers
DEBUG>>register_qt4_printers (None)
DEBUG>>from wx import register_wx_printers
DEBUG>>register_wx_printers (None)
DEBUG>>end
DEBUG>>00000010-break-insert -f "\"/home/flynn/Programming/TestProj1/main.c:5\""
Debug session started successfully!
DEBUG>>00000011-exec-arguments
DEBUG>>00000012-exec-run
DEBUG>>=thread-group-added,id="i1"
=thread-group-added,id="i1"
DEBUG>>~"GNU gdb (Gentoo 7.5.1 p2) 7.5.1\n"
GNU gdb (Gentoo 7.5.1 p2) 7.5.1
DEBUG>>~"Copyright (C) 2012 Free Software Foundation, Inc.\n"
Copyright (C) 2012 Free Software Foundation, Inc.
DEBUG>>~"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"
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.
DEBUG>>~"This GDB was configured as \"x86_64-pc-linux-gnu\".\nFor bug reporting instructions, please see:\n"
This GDB was configured as "x86_64-pc-linux-gnu".\nFor bug reporting instructions, please see:
DEBUG>>~"<http://bugs.gentoo.org/>...\n"
<http://bugs.gentoo.org/>...
DEBUG>>~"Reading symbols from /home/flynn/Programming/TestProj1/Debug/TestProj1..."
Reading symbols from /home/flynn/Programming/TestProj1/Debug/TestProj1...
DEBUG>>~"done.\n"
done.
DEBUG>>&"set unwindonsignal on\n"
DEBUG>>^done
DEBUG>>&"set breakpoint pending on\n"
DEBUG>>^done
DEBUG>>&"set width 0\n"
DEBUG>>^done
DEBUG>>&"set height 0\n"
DEBUG>>^done
DEBUG>>&"set print elements 200\n"
DEBUG>>^done
DEBUG>>&"python\n"
DEBUG>>&"Traceback (most recent call last):\n"
DEBUG>>&" File \"<string>\", line 4, in <module>\n"
DEBUG>>&" File \"/home/flynn/.codelite/gdb_printers/libstdcxx/v6/printers.py\", line 911, in register_libstdcxx_printers\n"
DEBUG>>&" gdb.printing.register_pretty_printer(obj, libstdcxx_printer)\n"
DEBUG>>&" File \"/usr/share/gdb/python/gdb/printing.py\", line 141, in register_pretty_printer\n"
DEBUG>>&" printer.name)\n"
DEBUG>>&"RuntimeError: pretty-printer already registered: libstdc++-v6\n"
DEBUG>>&"Error while executing Python code.\n"
DEBUG>>^error,msg="Error while executing Python code."
^error,msg="Error while executing Python code."
DEBUG>>&"No source file named /home/flynn/Programming/TestProj1/main.c.\n"
DEBUG>>00000010^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="<PENDING>",pending="\"/home/flynn/Programming/TestProj1/main.c:5\"",times="0",original-location="\"/home/flynn/Programming/TestProj1/main.c:5\""}
Found the breakpoint ID!
Storing debugger breakpoint Id=1
Successfully set breakpoint 1 at: /home/flynn/Programming/TestProj1/main.c:5
DEBUG>>00000011^done
>> Debuggee process ID: 26213
DEBUG>>=thread-group-started,id="i1",pid="26213"
=thread-group-started,id="i1",pid="26213"
DEBUG>>=thread-created,id="1",group-id="i1"
=thread-created,id="1",group-id="i1"
DEBUG>>=thread-exited,id="1",group-id="i1"
=thread-exited,id="1",group-id="i1"
DEBUG>>=thread-group-exited,id="i1"
=thread-group-exited,id="i1"
DEBUG>>00000012^error,msg="During startup program exited normally."
Debug session ended
During startup program exited normally.
thanks
freanux