(gdb) target remote localhost:1234 Remote debugging using localhost:1234 warning: Could not load vsyscall page because no executable was specified try using the "file" command first. 0xb769135b in ()
首先编译arm-linux-androideabi-gdb,android-ndk-r9中自带了 gdbserver 和 arm-linux-androideabi-gdb ,但是使用 gdbserver 和 arm-linux-androideabi-gdb 调试手机的时候,用gcore出现Command notimplemented for this target,原因是ndk里面自带的arm-linux-androideabi-gdb把 gcore 移除了,所以需要自己编译一个 arm-linux-androideabi-gdb
1 2 3
(gdb) gcore warning: Signal SIGTRAP does not exist on this system. Target does not support core file generation.