[Qt-creator] Debugging remote processes, on android...?

Diego Iastrubni diegoiast at gmail.com
Thu Jun 21 15:21:38 CEST 2012


Hi all,

I am using QtCreator to develop a C++ project which most of it is
cross compiling to android (cmake FTW!). My problem is that somethings
are not really working on Andrioid, and right now I have to use
gdbserver for debugging. On the client the setup is a little different
then normally, since we are targetting another toolchain (not even a
gnu toolchain, as android uses Dalvik and not {g,uc}libc).

- I cannot use the normal gdb, I need to use
$ANDROID_SRC/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gdb
- When I connect I need to run the following extra commands:

set solib-absolute-prefix $ANDROID_SRC/out/target/product/MYPRODUCT/symbols/
set solib-search-path
$ANDROID_SRC/out/target/product/MYPRODUCT/symbols/system/lib/

However - from this point, the debugging is normal. Is it possible to
automate this and then use QtCreator for code navigation?


- diego



More information about the Qt-creator mailing list