Hello everyone!
I want to debug my native code.
Therefore I setup my environment according to this tutorial:
http://www.eclipse.org/sequoyah/documentation/native_debug.php
If I use the emulator everything works fine (but slow as usual...).
If I use my phone (Samsung GT-19000) I cannot connect to the device as
I did it before.
I tried setting the port by
ndk-gdb --port=5039
and forwarding the port to the device through
adb forward tcp:5039 dev:<device-number>
but nothing worked.
If I try connecting to the device LogCat gives me the following
output:
10-08 22:45:13.649: DEBUG/AndroidRuntime(20227): >>>>>>>>>>>>>>
AndroidRuntime START <<<<<<<<<<<<<<
10-08 22:45:13.649: DEBUG/AndroidRuntime(20227): CheckJNI is OFF
10-08 22:45:13.657: DEBUG/AndroidRuntime(20227): setted country_code =
Korea
10-08 22:45:13.657: DEBUG/AndroidRuntime(20227): setted sales_code =
KOR
10-08 22:45:13.657: DEBUG/AndroidRuntime(20227): found sales_code tag
= <KOR>, </KOR>
10-08 22:45:13.666: DEBUG/dalvikvm(20227): creating instr width table
10-08 22:45:13.700: DEBUG/AndroidRuntime(20227): --- registering
native functions ---
10-08 22:45:13.864: INFO/ActivityManager(2459): Starting activity:
Intent { flg=0x10000000
cmp=
de.berlin.htw.project.s0522031.imgsorter.app/.activity.SplashScreen }
10-08 22:45:14.352: DEBUG/AndroidRuntime(20227): Shutting down VM
10-08 22:45:14.356: DEBUG/dalvikvm(20227): Debugger has detached;
object registry had 1 entries
10-08 22:45:14.375: INFO/AndroidRuntime(20227): NOTE: attach of thread
'Binder Thread #3' failed
I anybody went through this before I would really appreciate some
tips.
Cheers,
Ben