You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

dfmax

Beginner

  • "dfmax" started this thread

Posts: 13

Location: Slovenia

  • Send private message

1

Thursday, June 30th 2005, 12:42pm

debugging in kdevelop (gdb)

In the dialog "Project Options" under "Configure Options" I've set CXXFLAGS to "-g -Wall" to enable debuging symbols in my program.

But Kdevelop still says "no source" in status bar when I run it in debug mode.

I also tried in bash:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
gdb a.out
GNU gdb 6.3
Copyright 2004 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 "i686-pc-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) break main
Breakpoint 1 at 0xa4b: file bla.cpp, line 9.
(gdb) run
Starting program: /home/max/a.out
Warning:
Cannot insert breakpoint 1.
Error accessing memory address 0xa4b: Input/output error.

(gdb)                                          


What am I doing wrong? Is it gdb problem?

Thanks!