From 6329eca684fd417a5449573c1cb3760c928f39f1 Mon Sep 17 00:00:00 2001 From: Brad Parker Date: Thu, 1 Mar 2018 16:01:04 -0500 Subject: [PATCH] add patch to enable gdb/debugging on android --- retroarch-android-debug.diff | 37 ++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 retroarch-android-debug.diff diff --git a/retroarch-android-debug.diff b/retroarch-android-debug.diff new file mode 100644 index 0000000000..2468d88be9 --- /dev/null +++ b/retroarch-android-debug.diff @@ -0,0 +1,37 @@ +diff --git a/pkg/android/phoenix/AndroidManifest.xml b/pkg/android/phoenix/AndroidManifest.xml +index ce2114c..12d8fbb 100644 +--- a/pkg/android/phoenix/AndroidManifest.xml ++++ b/pkg/android/phoenix/AndroidManifest.xml +@@ -21,7 +21,8 @@ + android:label="RetroArch" + android:hasCode="true" + android:isGame="true" +- android:banner="@drawable/banner"> ++ android:banner="@drawable/banner" ++ android:debuggable="true"> + + + +diff --git a/pkg/android/phoenix/build.xml b/pkg/android/phoenix/build.xml +index 9698a04..6b2c101 100644 +--- a/pkg/android/phoenix/build.xml ++++ b/pkg/android/phoenix/build.xml +@@ -96,7 +96,7 @@ + ++ replace="\1true\2"/> + + + +diff --git a/pkg/android/phoenix/jni/Application.mk b/pkg/android/phoenix/jni/Application.mk +index b179dbf..84ade89 100644 +--- a/pkg/android/phoenix/jni/Application.mk ++++ b/pkg/android/phoenix/jni/Application.mk +@@ -1,3 +1,5 @@ ++APP_OPTIM := debug ++ + ifeq ($(GLES),3) + ifndef NDK_GL_HEADER_VER + APP_PLATFORM := android-18