ndk-gdb

vi bindings in ndk-gdb

冷暖自知 提交于 2019-12-23 02:40:15
问题 I know C+M+j enters into vi-mode in gdb. Cygwin-gdb seems to obey my shell settings ( set -o vi ) and automatically is in vi-mode. However, I can't seem to get ndk-gdb to get into vi-mode. Does anyone know how? 来源: https://stackoverflow.com/questions/15770233/vi-bindings-in-ndk-gdb

Gdbserver strange error while debugging native app

帅比萌擦擦* 提交于 2019-12-13 00:41:12
问题 I'm trying to debug an native app on my android device. I followed this tutorial: http://blog.thecobraden.com/2012/02/debugging-apps-with-native-code-part-1_09.html And everything went good, I built the app and installed it, once I wanted to debug it with ndk-gdb I got this error: Could not open remote device: Invalid argument. I searched this error and found this answer: Android NDK debugging: device can't be opened It's very similar to my problem, I tried this method and now I get this

Debugging Android native application using ndk-gdb

喜你入骨 提交于 2019-12-12 18:07:29
问题 I am trying to debug my android application having some native(c++) code using ndk-gdb in eclipse.It seems that by gdb server starts successfully from command line and is taking commands. But in eclipse it is showing this error : Error while obtaining file from device com.android.ddmlib.SyncException: Writing local file failed Any one help me please. 回答1: It seems that the framework for debugging requires an obj/local/armeabi folder. If you open the launch file for native debugging, .metadata

直接使用JDB解决ndk-gdb调试时的“waiting for debugger”弹窗不消失问题

痞子三分冷 提交于 2019-12-10 16:38:06
一 概述 如题的情况,我是在苹果(Mac)的笔记本电脑上调试时遇到的。我查了一下,已经有网友遇到过类似的情况,其解决方法多数是,杀进程\重启\启动两个eclipse调试.杀进程\重启的方法我试过,对我的情况不起作用,启动两个eclipse调试的方法我没有试,因为安装eclipse时出了些问题没有安装成功。现在回想起来觉得本文所说的方法,应该是可以配合eclipse或Android Studio解决问题的。因为这两个IDE其Java调试的底层也是用JDB实现的。 二 问题描述 *(Mac)OS X Yosemite 版本 10.10.2 * Android SDK + android-ndk-r9c + ant + emacs (eclipse没安装成功,所以没有用) 用NDK(android-ndk-r9c)的ndk-gdb —start 调用试(sample的)hellojni。但一启动后就一直卡在如下这个画面。我按模拟器的返“回键”,也关不了这个“waiting for debugger”弹出窗口。gdb已经是成功启动的,但是程序就是run不起来。 三 解决方法 因为直接使用JDB调试有一个问题,那就是程序要已经启动了,JDB才可以连接。这个就会“错过”了程序启动的的代码。我在网上查到了一种直接用代码停住程序的方法:加入“android.os.Debug

Your APP_BUILD_SCRIPT points to an unknown file: ./jni/Android.mk

ぃ、小莉子 提交于 2019-12-10 15:55:47
问题 I am trying to get ndk-gdb to work but I have some problems. My project structure is something like this: trunk --indiana (Here is the android_manifest) --ubravo_java ----mbravo (here is the native code) ------jni (here are the Android.mk and Application.mk) Question 1: I understand that I probably have to run ndk-gdb from the directory where the manifest is located correct? Or I provide the --project parameter to the ndk-gdb command. So if I try to launch the ndk-gdb like this: ndk-gdb -

run-as Package 'a.b.c' is unknown - Galaxy S4 Jellybean or Android 4.3

…衆ロ難τιáo~ 提交于 2019-12-10 15:38:50
问题 I cannot run run-as (or ndk-gdb) for the Galaxy S4 running Jellybean 4.2.2. ~ $ adb shell shell@android:/ $ run-as a.b.c ls run-as: Package 'a.b.c' is unknown There are multiple answers for this issue for pre-ICS devices, but those seem to have been fixed in ICS. Update - Aug 2013: After initially appearing on the Galaxy S4 with Jellybean 4.2.2, the run-as issue now seems to be on all 4.3 devices. See this Android bug. See the acknowledged Android issue here. Update - Nov 2013: Google posted

ndk-gdb cannot find gdb.setup but it is there under x86

社会主义新天地 提交于 2019-12-07 18:46:20
问题 Cocos2d-x 3.7.1 + ndk r10e project on Mac trying to debug in Eclipse. Days pass and the errors keep coming... I can build and run using cocos compile and cocos run with -p android -m debug --ndk-mode NDK_DEBUG=1 from the terminal in proj.android. My app runs Ok (eventually) on my x86 emulator no problem. Typing 'ndk-gdb' in the terminal from ./proj.android and I get the error ERROR: Could not find gdb.setup under ./libs/ BUT the file gdb.setup (and gdbserver & libcocos2dcpp.so) can be seen in

Error with ndk-gdb of android-ndk-r9d-linux-x86 in ubuntu 12.04

偶尔善良 提交于 2019-12-05 06:10:12
I use ndk-gdb of android-ndk-r9d-linux-x86 in ubuntu 12.04 to debug the android native application "hello-jni", but it receive this error. WARNING: The shell running this script isn't bash. Although we try to avoid bashism in scripts, things can happen. .../adt-bundle-linux-x86-20140321/android-ndk-r9d/ndk-gdb: 143: .../adt-bundle-linux-x86-20140321/android-ndk-r9d/ndk-gdb: Bad substitution .../adt-bundle-linux-x86-20140321/android-ndk-r9d/ndk-gdb: 555: [: 1: unexpected operator .../adt-bundle-linux-x86-20140321/android-ndk-r9d/ndk-gdb: 771: [: armeabi-v7a: unexpected operator but the android

NDK debugging with r9 works on W7/64 but gives me issues in XP

a 夏天 提交于 2019-12-01 15:58:33
I've recently loaded the new Android dev tools, SDK 20130717 and NDK r9. Up to now I had the previous versions, working and debugging from within Eclipse just fine on both of my systems, a XP and a W7/64. Now, the W7/64 with the new tools does work and debug my apps ok after the new tools installation and the required path environment changes. It works ok when I select the "Debug As" + "Android Native Application". Yet the XP, although they have the exact configuration in terms of folders/cygwin etc, after the new tools installed and the necessary path env changed, it looks that it can't start

NDK debugging with r9 works on W7/64 but gives me issues in XP

你说的曾经没有我的故事 提交于 2019-12-01 14:41:10
问题 I've recently loaded the new Android dev tools, SDK 20130717 and NDK r9. Up to now I had the previous versions, working and debugging from within Eclipse just fine on both of my systems, a XP and a W7/64. Now, the W7/64 with the new tools does work and debug my apps ok after the new tools installation and the required path environment changes. It works ok when I select the "Debug As" + "Android Native Application". Yet the XP, although they have the exact configuration in terms of folders