Index: parts/debugger/gdbcontroller.cpp
===================================================================
RCS file: /home/kde/kdevelop/parts/debugger/gdbcontroller.cpp,v
retrieving revision 1.23
diff -u -r1.23 gdbcontroller.cpp
--- parts/debugger/gdbcontroller.cpp	25 Mar 2003 01:03:01 -0000	1.23
+++ parts/debugger/gdbcontroller.cpp	25 Mar 2003 15:16:11 -0000
@@ -1168,12 +1168,13 @@
     connect( dbgProcess_, SIGNAL(processExited(KProcess*)),
              this,        SLOT(slotDbgProcessExited(KProcess*)) );
 
+    QString debug_command_line;
     if (!shell.isEmpty())
-        *dbgProcess_ << "/bin/sh" << "-c"
-        << shell + " " +config_gdbPath_ + "gdb " + application + " -fullname -nx -quiet";
-    else
-        *dbgProcess_ << config_gdbPath_ + "gdb" << application << "-fullname" << "-nx" << "-quiet";
-
+        debug_command_line = "/bin/sh -c " + shell + " ";
+    debug_command_line += config_gdbPath_ + "gdb " + application + " -fullname -nx -quiet";
+    kdDebug() << "Debug command line:" << debug_command_line << endl;
+    
+    *dbgProcess_ << debug_command_line;
     dbgProcess_->start( KProcess::NotifyOnExit,
                         KProcess::Communication(KProcess::All));
 
