ide;debugger; fixed GdbExit doesn't wait for new valgrind threads to exit. threads...
authorRejean Loyer <rejean.loyer@gmail.com>
Tue, 8 Oct 2013 01:19:56 +0000 (21:19 -0400)
committerJerome St-Louis <jerome@ecere.com>
Wed, 9 Oct 2013 06:32:14 +0000 (02:32 -0400)
ide/src/debugger/Debugger.ec

index b702a96..58b76b7 100644 (file)
@@ -2551,6 +2551,21 @@ class Debugger
             gdbThread.Wait();
             app.Lock();
          }
+         if(vgLogThread)
+         {
+            app.Unlock();
+            vgLogThread.Wait();
+            app.Lock();
+         }
+         if(vgTargetThread)
+         {
+            app.Unlock();
+            vgTargetThread.Wait();
+            app.Lock();
+         }
+
+         if(vgLogFile)
+            delete vgLogFile;
          if(gdbHandle)
          {
             gdbHandle.Wait();