Android debugging compatibility fix for Creator 3.1
authorPaul Olav Tvete <paul.tvete@digia.com>
Wed, 13 Aug 2014 12:32:51 +0000 (14:32 +0200)
committerBogDan Vatra <bogdan@kde.org>
Mon, 18 Aug 2014 07:02:31 +0000 (09:02 +0200)
Make debugging work with both Qt Creator 3.1 and the upcoming 3.2.

Change-Id: I0d13d353fe560aee0c0103959d9619f14786ba57
Reviewed-by: BogDan Vatra <bogdan@kde.org>
src/androiddeployqt/main.cpp

index ca5d7e3..e3ed5c2 100644 (file)
@@ -2687,12 +2687,14 @@ bool copyGdbServer(const Options &options)
         return false;
     }
 
+    QString gdbServerTarget = options.outputDirectory + QLatin1String("/libs/") + options.architecture;
+
     if (!copyFileIfNewer(gdbServerBinary,
-                         options.outputDirectory
-                            + QLatin1String("/libs/")
-                            + options.architecture
-                            + QLatin1String("/gdbserver.so"),
-                         options.verbose)) {
+                         gdbServerTarget + QLatin1String("/gdbserver"),
+                         options.verbose)
+        || !copyFileIfNewer(gdbServerBinary,
+                            gdbServerTarget + QLatin1String("/libgdbserver.so"),
+                            options.verbose)) {
         return false;
     }