oh right, here it is:
######################################################################
# Automatically generated by qmake (2.01a) Fri Jan 25 13:56:09 2008
######################################################################
TEMPLATE = app
TARGET =
DEPENDPATH += .
INCLUDEPATH += .
# Input
SOURCES += main.cpp
######################################################################
# Automatically generated by qmake (2.01a) Fri Jan 25 13:56:09 2008
######################################################################
TEMPLATE = app
TARGET =
DEPENDPATH += .
INCLUDEPATH += .
# Input
SOURCES += main.cpp
To copy to clipboard, switch view to plain text mode
Right I made it without KDevelop and this is what gdb gave me when stepping through code.
~/MToDo/src$ gdb src
GNU gdb 6.6-debian
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(gdb) break main
Breakpoint 1 at 0x8048596: file main.cpp, line 5.
(gdb) run
Starting program: /home/defumar/MToDo/src/src
[Thread debugging using libthread_db enabled]
[New Thread -1224051008 (LWP 6910)]
[Switching to Thread -1224051008 (LWP 6910)]
Breakpoint 1, main (argc=1, argv=0xbfb26af4) at main.cpp:5
(gdb) n
Qt: gdb: -nograb added to command-line options.
Use the -dograb option to enforce grabbing.
7 return 0;
(gdb) n
8 }
(gdb) n
0xb743b050 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
(gdb) n
Single stepping until exit from function __libc_start_main,
which has no line number information.
Program exited normally.
(gdb) q
~/MToDo/src$ gdb src
GNU gdb 6.6-debian
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(gdb) break main
Breakpoint 1 at 0x8048596: file main.cpp, line 5.
(gdb) run
Starting program: /home/defumar/MToDo/src/src
[Thread debugging using libthread_db enabled]
[New Thread -1224051008 (LWP 6910)]
[Switching to Thread -1224051008 (LWP 6910)]
Breakpoint 1, main (argc=1, argv=0xbfb26af4) at main.cpp:5
5 QApplication app(argc, argv);
(gdb) n
Qt: gdb: -nograb added to command-line options.
Use the -dograb option to enforce grabbing.
7 return 0;
(gdb) n
8 }
(gdb) n
0xb743b050 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
(gdb) n
Single stepping until exit from function __libc_start_main,
which has no line number information.
Program exited normally.
(gdb) q
To copy to clipboard, switch view to plain text mode
backtrace after executing line 5 (evil line, ain't it) returns the same as before (argc=Cannot access mem at 0x0)
Bookmarks