Add -g flags to make compiled code debuggable

Change-Id: I1cc3e81bd8c0841cf415059340911cfee263d101
(cherry picked from commit 59ac1f467901729af7c89cc07f46f1c133547690)
diff --git a/build-system/gradle-experimental/src/main/groovy/com/android/build/gradle/ndk/internal/ClangNativeToolSpecification.java b/build-system/gradle-experimental/src/main/groovy/com/android/build/gradle/ndk/internal/ClangNativeToolSpecification.java
index 6b7b1e5..0fd744c 100644
--- a/build-system/gradle-experimental/src/main/groovy/com/android/build/gradle/ndk/internal/ClangNativeToolSpecification.java
+++ b/build-system/gradle-experimental/src/main/groovy/com/android/build/gradle/ndk/internal/ClangNativeToolSpecification.java
@@ -66,6 +66,7 @@
                             "-msoft-float",
                             "-mthumb",
                             "-Os",
+                            "-g",
                             "-DNDEBUG",
                             "-fomit-frame-pointer",
                             "-fstrict-aliasing"))
@@ -80,6 +81,7 @@
                             "-mfpu=vfpv3-d16",
                             "-mthumb",
                             "-Os",
+                            "-g",
                             "-DNDEBUG",
                             "-fomit-frame-pointer",
                             "-fstrict-aliasing"))
@@ -90,6 +92,7 @@
                             "-fstack-protector",
                             "-no-canonical-prefixes",
                             "-O2",
+                            "-g",
                             "-DNDEBUG",
                             "-fomit-frame-pointer",
                             "-fstrict-aliasing"))
@@ -100,6 +103,7 @@
                             "-fPIC",
                             "-no-canonical-prefixes",
                             "-O2",
+                            "-g",
                             "-DNDEBUG",
                             "-fomit-frame-pointer",
                             "-fstrict-aliasing"))
@@ -110,6 +114,7 @@
                             "-fPIC",
                             "-no-canonical-prefixes",
                             "-O2",
+                            "-g",
                             "-DNDEBUG",
                             "-fomit-frame-pointer",
                             "-fstrict-aliasing"))