GDB argument restrictions

Christoph Niedermayr niedermayr at trium.de
Thu Aug 17 09:28:49 BST 2006


Hi!

are there restrictions on the arguments passed to gdb by kdevelop?
i need to pass some paths which results in a rather long argument list,
eg:
/home/niedermayr/diplomarbeit/MRIDaten/DICOM/RPTC/Work/normalizedCoords_5mm/Body_01.dcm /home/niedermayr/diplomarbeit/MRIDaten/DICOM/RPTC/Work/normalizedCoords_5mm/masks/Body_01.dcm /home/niedermayr/diplomarbeit/MRIDaten/DICOM/RPTC/Work/normalizedCoords_5mm/Head_01.dcm /home/niedermayr/diplomarbeit/MRIDaten/DICOM/RPTC/Work/normalizedCoords_5mm/masks/Head_01.dcm /home/niedermayr/diplomarbeit/MRIDaten/DICOM/RPTC/Work/

looking at the gdb window, gdb stops right after the first breakpoint
(yes, there are more than one) has been set (see [1]).

the debug toolbar enables all buttons, just like if a breakpoint had
been hit, but none of the other debug windows (framestack,...) displays
any information. the gdb "direct command input field" is also active,
but there is no reaction whatsoever if i type e.g. "backtrace".

if i set the debugging arguments to "1 2 3 4 5", the debugger works
fine, and using plain gdb also works fine with the long argument list
(see [2]), so i guess its about gdb integration in kdevelop... 

im using kdevelop 3.3.2 and gdb 6.4 on ubuntu dapper...

tia,
chris


[1]
gdb /home/niedermayr/diplomarbeit/code/lethe/debug/src/metric -fullname
-quiet
(gdb) set edit off 
(gdb) set confirm off 
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) 
(gdb) 
(gdb) set print static-members off 
(gdb) tty /dev/pts/0 
(gdb) set width 0 
(gdb) set height 0 
(gdb) set stop-on 1 
(gdb) handle SIG32 pass nostop noprint 
(gdb) handle SIG41 pass nostop noprint 
(gdb) handle SIG42 pass nostop noprint 
(gdb) handle SIG43 pass nostop noprint 
(gdb) set print asm-demangle on 
(gdb) set output-radix 10 
(gdb) cd /home/niedermayr/diplomarbeit/code/lethe/debug 
(gdb) set
args /home/niedermayr/diplomarbeit/MRIDaten/DICOM/RPTC/Work/normalizedCoords_5mm/Body_01.dcm /home/niedermayr/diplomarbeit/MRIDaten/DICOM/RPTC/Work/normalizedCoords_5mm/masks/Body_01.dcm /home/niedermayr/diplomarbeit/MRIDaten/DICOM/RPTC/Work/normalizedCoords_5mm/Head_01.dcm /home/niedermayr/diplomarbeit/MRIDaten/DICOM/RPTC/Work/normalizedCoords_5mm/masks/Head_01.dcm /home/niedermayr/diplomarbeit/MRIDaten/DICOM/RPTC/Work/ 
(gdb) set environment LD_LIBRARY_PATH=/usr/local/lib/InsightToolkit/ 
(gdb) break /home/niedermayr/diplomarbeit/code/lethe/src/metric.cpp:52 
Breakpoint 1 at 0x411488:
file /home/niedermayr/diplomarbeit/code/lethe/src/metric.cpp, line 52.


[2]
niedermayr at WS051:~/diplomarbeit/code/lethe/debug/src$ gdb metric
GNU gdb 6.4-debian
Copyright 2005 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 "x86_64-linux-gnu"...Using host libthread_db
library "/lib/libthread_db.so.1".

(gdb) set
args /home/niedermayr/diplomarbeit/MRIDaten/DICOM/RPTC/Work/normalizedCoords_5mm/Body_01.dcm /home/niedermayr/diplomarbeit/MRIDaten/DICOM/RPTC/Work/normalizedCoords_5mm/masks/Body_01.dcm /home/niedermayr/diplomarbeit/MRIDaten/DICOM/RPTC/Work/normalizedCoords_5mm/Head_01.dcm /home/niedermayr/diplomarbeit/MRIDaten/DICOM/RPTC/Work/normalizedCoords_5mm/masks/Head_01.dcm /home/niedermayr/diplomarbeit/MRIDaten/DICOM/RPTC/Work/
(gdb) break /home/niedermayr/diplomarbeit/code/lethe/src/metric.cpp:52
Breakpoint 1 at 0x411488:
file /home/niedermayr/diplomarbeit/code/lethe/src/metric.cpp, line 52.
(gdb) r
Starting
program: /home/niedermayr/diplomarbeit/code/lethe/debug/src/metric /home/niedermayr/diplomarbeit/MRIDaten/DICOM/RPTC/Work/normalizedCoords_5mm/Body_01.dcm /home/niedermayr/diplomarbeit/MRIDaten/DICOM/RPTC/Work/normalizedCoords_5mm/masks/Body_01.dcm /home/niedermayr/diplomarbeit/MRIDaten/DICOM/RPTC/Work/normalizedCoords_5mm/Head_01.dcm /home/niedermayr/diplomarbeit/MRIDaten/DICOM/RPTC/Work/normalizedCoords_5mm/masks/Head_01.dcm /home/niedermayr/diplomarbeit/MRIDaten/DICOM/RPTC/Work/
[Thread debugging using libthread_db enabled]
[New Thread 46912546862128 (LWP 26208)]
[Switching to Thread 46912546862128 (LWP 26208)]

Breakpoint 1, main (argc=6, argv=0x7ffffff50b38)
at /home/niedermayr/diplomarbeit/code/lethe/src/metric.cpp:52
52          movingPath     = argv[1];






More information about the KDevelop mailing list