debugger problem

Andreas Wuest AndreasWuest at gmx.de
Sat Jan 11 13:39:02 UTC 2003


Hi,

removing the "shell" variable and the empty space from the argument
list in 1095 of the gdbcontroller.cpp fixes the problem i have.
see attached patch.

so what is the shell variable used for. the shell variable at that
position has the value "/usr/bin/libtool". but i do absolutely not
understand why the libtool has to be added to the argument list,
since we only want to start the gdb. 

does removing the shell argument from the argument list break 
debugging on your systems ??

thanks, 

 Andreas 
 


> Hi,
> 
> i have a small problem using the debugger. When i try to start to
> debug a file a get the following messages on my terminal. Debugging
> a file fails of course. 
> 
> kdevelop (debugger): Debugger state: P:
> kdevelop (debugger):
> gideon: setBreakpoint:/home/andy/test/src/main.cpp
> QObject::disconnect: No such signal
> KateDocument::markChanged(KTextEditor::Mark,KTextEditor::MarkInterfaceExtension::MarkChangeAction)
> QObject::connect: No such signal
> KateDocument::markChanged(KTextEditor::Mark,KTextEditor::MarkInterfaceExtension::MarkChangeAction)
> QObject::connect:  (sender name:   'unnamed')
> QObject::connect:  (receiver name: 'unnamed')
> gideon: setBreakpoint:/home/andy/test/src/test.cpp
> gideon: setBreakpoint:/home/andy/test/src/main.cpp
> QObject::disconnect: No such signal
> KateDocument::markChanged(KTextEditor::Mark,KTextEditor::MarkInterfaceExtension::MarkChangeAction)
> QObject::connect: No such signal
> KateDocument::markChanged(KTextEditor::Mark,KTextEditor::MarkInterfaceExtension::MarkChangeAction)
> QObject::connect:  (sender name:   'unnamed')
> QObject::connect:  (receiver name: 'unnamed')
> gideon: setBreakpoint:/home/andy/test/src/test.cpp
> kdevelop (debugger): STDERR: Excess command line arguments ignored.
> ("-nx" ...)
> @
> kdevelop (debugger): Unparsed (default - not busy)<Excess command line
> arguments ignored. ("-nx" ...)>
> kdevelop (debugger): Unparsed (default - not busy)<GNU gdb 5.3>
> kdevelop (debugger): Unparsed (default - not busy)<Copyright 2002 Free
> Software Foundation, Inc.>
> kdevelop (debugger): Unparsed (default - not busy)<GDB is free software,
> covered by the GNU General Public License, and you are>
> kdevelop (debugger): Unparsed (default - not busy)<welcome to change it
> and/or distribute copies of it under certain conditions.>
> kdevelop (debugger): Unparsed (default - not busy)<Type "show copying"
> to see the conditions.>
> kdevelop (debugger): Unparsed (default - not busy)<There is absolutely
> no warranty for GDB.  Type "show warranty" for details.>
> kdevelop (debugger): STDERR: "/home/andy/test/./bin/test": No such file
> or directory.
> kdevelop (debugger): STDERR:
> /
> kdevelop (debugger): <quit wait>
> kdevelop (debugger): Debugger state:  :
> kdevelop (debugger):    Debugger stopped
> kdevelop (debugger): Disassemble widget active: false
> kdevelop (core): Core::running
> kdevelop (debugger): Debugger state: E:
> kdevelop (debugger):    This GDB was configured as
> "i686-pc-linux-gnu"..."/home/andy/test/./bin/test": No such file or
> directory.
> kdevelop (debugger): Bad file <This GDB was configured as
> "i686-pc-linux-gnu"..."/home/andy/test/./bin/test": No such file or
> directory.>
> kdevelop (debugger): Timer aborted
> 
> It looks like there is a problem with parsing the output of gdb, since
> the string 
> This GDB was configured as "i686-pc-linux-gnu"
> is the very last one gdb prints when started. 
> For some reason the string seems to be prepended to the filename which 
> then of course does not exists.
> Or is this a problem with the gdb ?
> 
> i'm using lastest cvs and gdb 5.3 (gentoo 1.4 rc2)
> 
> Thanks,
> 
>  Andreas 
-- 

    / /  (_)__  __ ____  __
   / /__/ / _ \/ // /\ \/ /  . . .  t h e   c h o i c e   o f   a
  /____/_/_//_/\_,_/ /_/\_\              G N U   g e n e r a t i o n . .
-------------- next part --------------
Index: gdbcontroller.cpp
===================================================================
RCS file: /home/kde/kdevelop/parts/debugger/gdbcontroller.cpp,v
retrieving revision 1.16
diff -u -p -r1.16 gdbcontroller.cpp
--- gdbcontroller.cpp	24 Aug 2002 17:27:59 -0000	1.16
+++ gdbcontroller.cpp	11 Jan 2003 11:51:21 -0000
@@ -1092,7 +1092,7 @@ void GDBController::slotStart(const QStr
     
     if (!shell.isEmpty())
         *dbgProcess_ << "/bin/sh" << "-c"
-                     << shell + " " +config_gdbPath_ + "gdb " + application + " -fullname -nx -quiet";
+                     << config_gdbPath_ + "gdb " + application + " -fullname -nx -quiet";
     else
         *dbgProcess_ << config_gdbPath_ + "gdb" << application << "-fullname" << "-nx" << "-quiet";
     


More information about the KDevelop-devel mailing list