Results 1 to 5 of 5

Thread: Remote debugging with Qt Creator

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2008
    Posts
    155
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanked 15 Times in 13 Posts

    Default Re: Remote debugging with Qt Creator

    Recent git snapshot offer 'i386' and 'i386:x86-64:intel' as remote architectures.

  2. #2
    Join Date
    Sep 2009
    Posts
    3
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Remote debugging with Qt Creator

    Hi "ktk",
    I tried the 1.2.91 snapshot last friday and it does has the i386 platform. It has allowed me to make some progress as I'm not getting the architecture error anymore. Nevertheless, I still cannot debug the application.

    After selecting "Debug -> Start Debugging -> Start and Attach to Remote Application...", QtCreator seems to successfully connect to the target, but shows me the following error dialog and aborts the debugging session:

    Connecting to remote server failed:
    164^error,data={msg="Don't know how to attach. Try \"help target\".",logstreamoutput="attach\nDon't know how to attach. Try \"help target\".\n",consolestreamoutput="A program is being debugged already. Kill it? (y or n) [answered Y; input not from terminal]\n"}

    The console showed the following debug printfs:

    ASSERTION state() == InferiorRunningRequested FAILED AT ../../../../src/plugins/debugger/gdb/remotegdbadapter.cpp:251
    InferiorStarting ( 9 )
    ASSERTION false FAILED AT ../../../../src/plugins/debugger/gdb/remotegdbadapter.cpp:279
    InferiorStarting ( 9 )
    UNEXPECTED STATE TRANSITION: "State changed from InferiorStarting(9) to AdapterShuttingDown(19)."

    My question is: for debugging a remote application with QtCreator, is it necessary to provide a gdb start-up script ? Shouldn't QtCreator be able to automatically talk to gdbserver on the target and start the debugging ?

    Does anybody
    Regards,

    Rodrigo

  3. #3
    Join Date
    Sep 2009
    Posts
    3
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Smile Re: Remote debugging with Qt Creator

    It was a bug in Qt Creator. It's been fixed already.

    For more information, see this thread:

    http://lists.trolltech.com/pipermail...er/004633.html

    Rodrigo.

  4. #4

    Default Re: Remote debugging with Qt Creator

    What about

    A handler for the OS ABI "GNU/Linux" is not built into this configuration
    of GDB. Attempting to continue with the default i386:x86-64:intel settings.
    Selected architecture i386:x86-64:intel is not compatible with reported target architecture i386

    that happens to me as well and it results in crashes when I try tu debug...

    `/lib/ld-linux.so.2': Shared library architecture unknown is not compatible with target architecture arm.
    `/lib/ld-linux.so.2': Shared library architecture unknown is not compatible with target architecture arm.
    `/lib/librt.so.1': Shared library architecture unknown is not compatible with target architecture arm.
    .dynamic section for "/lib/librt.so.1" is not at the expected address (wrong library or version mismatch?)
    `/lib/libdl.so.2': Shared library architecture unknown is not compatible with target architecture arm.
    .dynamic section for "/lib/libdl.so.2" is not at the expected address (wrong library or version mismatch?)
    `/lib/libpthread.so.0': Shared library architecture unknown is not compatible with target architecture arm.
    .dynamic section for "/lib/libpthread.so.0" is not at the expected address (wrong library or version mismatch?)
    `/lib/libm.so.6': Shared library architecture unknown is not compatible with target architecture arm.
    .dynamic section for "/lib/libm.so.6" is not at the expected address (wrong library or version mismatch?)
    `/lib/libgcc_s.so.1': Shared library architecture unknown is not compatible with target architecture arm.
    .dynamic section for "/lib/libgcc_s.so.1" is not at the expected address (wrong library or version mismatch?)
    `/lib/libc.so.6': Shared library architecture unknown is not compatible with target architecture arm.
    .dynamic section for "/lib/libc.so.6" is not at the expected address (wrong library or version mismatch?)
    `/lib/ld-linux.so.2': Shared library architecture unknown is not compatible with target architecture arm.
    `/lib/ld-linux.so.2': Shared library architecture unknown is not compatible with target architecture arm.
    `/lib/librt.so.1': Shared library architecture unknown is not compatible with target architecture arm.
    .dynamic section for "/lib/librt.so.1" is not at the expected address (wrong library or version mismatch?)
    `/lib/libdl.so.2': Shared library architecture unknown is not compatible with target architecture arm.
    .dynamic section for "/lib/libdl.so.2" is not at the expected address (wrong library or version mismatch?)
    `/lib/libpthread.so.0': Shared library architecture unknown is not compatible with target architecture arm.
    .dynamic section for "/lib/libpthread.so.0" is not at the expected address (wrong library or version mismatch?)
    `/lib/libm.so.6': Shared library architecture unknown is not compatible with target architecture arm.
    .dynamic section for "/lib/libm.so.6" is not at the expected address (wrong library or version mismatch?)
    ...........

    I have this as welll...I am using a gdb with target arm-linux...
    Best Regards

Similar Threads

  1. debugging in QT Creator
    By talk2amulya in forum Qt Tools
    Replies: 3
    Last Post: 22nd February 2009, 06:50
  2. Program crashes with assert error in xcb_lock.c
    By Valheru in forum Qt Programming
    Replies: 3
    Last Post: 18th November 2007, 19:56
  3. KDE 3.5.0 crash while opening project
    By MarkoSan in forum KDE Forum
    Replies: 2
    Last Post: 19th October 2007, 16:21
  4. Kdevelop remote debugging
    By hgedek in forum KDE Forum
    Replies: 0
    Last Post: 17th October 2007, 10:16
  5. Replies: 0
    Last Post: 21st September 2007, 11:08

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.