[Bug 74585] Unable to debug Hello World C++ program

Daniel Franke daniel.franke at imbs.uni-luebeck.de
Sun Feb 8 17:26:02 UTC 2004


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
      
http://bugs.kde.org/show_bug.cgi?id=74585      




------- Additional Comments From daniel.franke at imbs.uni-luebeck.de  2004-02-08 17:25 -------
Some comment that may be related:
removing the libtool-shell worked for me, but the 'run'-argument specified in debugger options isn't set, i.e. if a command-line argument is needed, say a filename. The debuggerpart runs the executable without this argument:

With 'libtool' (and program arguments set):
---
/bin/sh -c /home/franke/cvs/sibsim/package/debug/libtool gdb /home/franke/cvs/sibsim/package/debug/src/sibsim -fullname -nx -quiet
(gdb) set edit off 
(gdb) set confirm off 
Excess command line arguments ignored. ("-nx" ...)
GNU gdb 5.3
Copyright 2002 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 "i586-suse-linux"...
"/home/franke/cvs/sibsim/package/debug/src/sibsim": No such file or directory.


/home/franke/cvs/sibsim/package/"-fullname": No such file or directory.

(gdb) 
(gdb) 
---

Without 'libtool' (and program arguments set):
---
 gdb /home/franke/cvs/sibsim/package/debug/src/sibsim -fullname -nx -quiet
(gdb) set edit off 
(gdb) set confirm off 
(gdb) 
(gdb) 
(gdb) set print static-members off 
(gdb) tty /dev/pts/3 
(gdb) set width 0 
(gdb) set height 0 
(gdb) set stop-on 1 
(gdb) handle SIG32 pass nostop noprint 
(gdb) handle SIG43 pass nostop noprint 
(gdb) set print asm-demangle on 
(gdb) cd /home/franke/cvs/sibsim/package/debug/src 
(gdb) run 		[<-------- argument not set here]
[New Thread 16384 (LWP 15917)]
Stopped due to shared library event
(gdb) continue 
[Switching to Thread 16384 (LWP 15917)]
Stopped due to shared library event
(gdb) continue 
Stopped due to shared library event
(gdb) continue 

Program exited with code 01.
--




More information about the KDevelop-devel mailing list