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

Orgad and Raizel Shaneh orgads at gmail.com
Thu Jun 21 16:18:04 CEST 2012


On Thu, Jun 21, 2012 at 4:21 PM, Diego Iastrubni <diegoiast at gmail.com>wrote:

> 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
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
>

Set a toolchain with this version of gdb, and set your project to use it.
In Tools -> Options -> Debugger -> GDB insert your commands in "Additional
Startup Commands"

- Orgad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20120621/98db6414/attachment.html>


More information about the Qt-creator mailing list