Note that there are some explanatory texts on larger screens.

plurals
  1. POattaching to android native app with gdb closes app on device
    text
    copied!<p>I am attempting to debug my native app compiled with ndk-r6. When I attempt to run ndk-gdb to attach the debugger to the process, the app quits on the device. I am stumped. Can anyone shed some light on this for me please?</p> <p>Here is a log of a run of the gdb process: <a href="http://pastebin.com/qTCR7mF2" rel="nofollow">http://pastebin.com/qTCR7mF2</a></p> <p>This is all I get out of logcat:</p> <pre><code>I/ActivityManager(10006): Process com.gmail.whittock.tom.clockwork (pid 11460) has died. I/WindowManager(10006): WIN DEATH: Window{4083aa18 com.gmail.whittock.tom.clockwork/com.gmail.whittock.tom.Util.NativeActivity paused=false} I/WindowManager(10006): WIN DEATH: Window{4085d8d0 SurfaceView paused=false} I/WindowManager(10006): Setting rotation to 0, animFlags=1 I/ActivityManager(10006): Config changed: { scale=1.0 imsi=234/10 loc=en_GB touch=3 keys=1/1/2 nav=1/1 orien=1 layout=34 uiMode=17 seq=31 themeResource=null} </code></pre> <p>EDIT:</p> <p>and this is my gdb.setup file:</p> <pre><code>$ cat libs/armeabi-v7a/gdb.setup set solib-search-path C:/Users/Tom/dev/android/Clockwork/obj/local/armeabi-v7a directory C:/Users/Tom/dev/android/ANDROI~2/platforms/android-5/arch-arm/usr/include C:/Users/Tom/dev/android/ANDROI~2/sources/cxx-stl/stlport/stlport C:/Users/Tom/dev/android/ANDROI~2/sources/cxx-stl/system/include C:/Users/Tom/dev/android/modules/box2d C:/Users/Tom/dev/android/Clockwork/jni </code></pre> <p>all paths in there look correct to me, but perhaps it's the use of the dos-compatibility versions of filenames that's causing the issue?!</p> <p>EDIT2: This is the <em>other</em> gdb.setup file:</p> <pre><code>$ cat obj/local/armeabi-v7a/gdb.setup file C:/Users/Tom/dev/android/Clockwork/obj/local/armeabi-v7a/app_process target remote :5039 file C:/Users/Tom/dev/android/Clockwork/obj/local/armeabi-v7a/app_process target remote :5039 file C:/Users/Tom/dev/android/Clockwork/obj/local/armeabi-v7a/app_process target remote :5039 </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload