[Pidgin] GSoC2012/Android/debugging modified

Pidgin trac at pidgin.im
Thu Jun 7 13:36:11 EDT 2012


Changed page "GSoC2012/Android/debugging" by michaelz from 88.66.57.212*
Page URL: <http://developer.pidgin.im/wiki/GSoC2012/Android/debugging>
Diff URL: <http://developer.pidgin.im/wiki/GSoC2012/Android/debugging?action=diff&version=3>
Revision 3
Comment: Updates

-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: GSoC2012/Android/debugging
=========================================================================
--- GSoC2012/Android/debugging (version: 2)
+++ GSoC2012/Android/debugging (version: 3)
@@ -1,4 +1,6 @@
 = debugging native code in Android. =
+
+Currently, this does not work. Those steps are just a start to get it working...
 
 (setting this up is not needed to do java debugging, you just can't step into native functions.)
 
@@ -6,24 +8,30 @@
 
 You should at first compile the library yourself.
 
-Then, go to the android ndk directory. There should be a file ndk-gdb. Copy it, name the copy ndk-gdb-eclipse, and remove the following, last line:
-  $GDBCLIENT -x `native_path $GDBSETUP`
+Then go to your ndk directory and to toolchains/arm-linux-androideabi-4.4.3/prebuilt and copy the gdbserver file you find there to your libs/armeabi directory (there should already be a lot of .so-Files there).
 
 == in Eclipse ==
   * Open the External Tools Configuration Dialog.
   * Add a new Program by double-clicking on Program on the left side.
   * Select the ndk-gdb-eclipse script you just created.
+  * As parameter, enter the right path to adb like:
+{{{
+--adb=../android-sdk-linux/platform-tools/adb
+}}}
+  * Set the working directory to the directory of your client project.
   * Select the build tab, and disable Build before launch.
   * Hit Apply, Close.
 
+Start your application in debug mode and when it is active, start the tool you just created. This will create some files you need for the next steps:
 
   * (skip for Testclient) Set android:debuggable="true" in your application definition in the AndroidManifest.xml.
   * Open the debug configuration dialog.
   * Create a new Debug configuration by double-clicking on ''C/C++ Attach to Application''
   * This needs to be done in the main tab:
     * Enter im.pidgin.libpurple as Project name
-    * Enter Android/libim.pidgin.libpurple.so as C/C++ Application name (or just click on Search project... to find it)
+    * Enter <your app>/libs/armeabi/app_process as C/C++ Application name (or just click on Search project... to find it)
     * Select Disable auto build
+    * Disable Run in Background.
   * Go to the debugger tab.
     * Select gdbserver as Debugger.
     * Enter ${ndk.root}/bin/arm-linux-androideabi-gdb in the GDB debugger filed.

-------8<------8<------8<------8<------8<------8<------8<------8<--------

* The IP shown here might not mean anything if the user or the server is
behind a proxy.

--
Pidgin <http://pidgin.im>
Pidgin

This is an automated message. Someone at http://pidgin.im added your email
address to be notified of changes on GSoC2012/Android/debugging. If it was not you, please
report to .


More information about the Wikiedit mailing list