I'm running NDK r12b on a Huawei Honor phone running Android 6.0.1, with USB debugging enabled.
Trying to ndk-gdb on any Android device will always give me:
Error: unable to connect to device.
Remote connection closedA little before this I also see:
warning: Selected architecture aarch64 is not compatible with reported target architecture arm
warning: Architecture rejected target-supplied descriptionNote that I had to use sudo like this:
sudo ndk-gdb --force --verbose --launchotherwise under gdb I would get
Unable to find Mach task port for process-id 44415: (os/kern) failure (0x5).
(please check gdb is codesigned - see taskgated(8))Then under gdb, running the executable with run give me:
(gdb) run
Starting program: /path/to/my/ndk-project-root/obj/local/arm64-v8a/system/bin/app_process64
During startup program terminated with signal SIG113, Real-time event 113.From this one: gdb on macOS Sierra 10.12.4
I gathered that gdb has issues with macOS Sierra. Am I hitting the same issue with ndk-gdb?
Then I tried on Win10 and got pretty much the same result.
I also verified that the permission of /data/local/tmp/arm64-gdbserver is 777.
At this point I'm clueless. Please help.
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+unsubscribe@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/0406ba3a-8fc0-45e2-af67-9ea10a5c1486%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Try updating your ndk?
+jmgao
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk...@googlegroups.com.
symbol-file <my.so>(gdb) b MyClass::MyMethod
Breakpoint 1 at 0x158354: file /path/to/MyClass.cpp, line 45.
(gdb) c
Continuing.
Warning:
Cannot insert breakpoint 1.
Cannot access memory at address 0x158354
Command aborted.
(gdb) Try updating your ndk?
+jmgao
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk...@googlegroups.com.