Results 1 to 5 of 5

Thread: Qt Creator debugging problem - GDB

  1. #1
    Join Date
    Jul 2012
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Cool Qt Creator debugging problem - GDB

    Hi people,

    New to Qt programming, but not C++ or programming in general.

    I have a particular problem trying to debug a program with QtCreator. I set a breakpoint, run debug and get this particular message...
    Qt Code:
    1. &"warning: GDB: Failed to set controlling terminal: Invalid argument\n"
    To copy to clipboard, switch view to plain text mode 

    Program runs normally but does not stop at breakpoint or anywhere in the program. I did try a search but nothing comes up apart from a post a couple of years ago and solutions then were rather vague.

    System: Fedora 17 (64 bit)
    Qt Creator 2.4.1
    Based on Qt 4.8.0 (64 bit)
    GNU gdb (GDB) Fedora (7.4.50.20120120-49.fc17)

    Anyone encountered this problem before.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Qt Creator debugging problem - GDB

    The warning message and the problem are unrelated. You can safely ignore the warning.

    Not stopping at a breakpoint can occur for two reasons:
    • Control never reaches the breakpoint (whether you think it should or not)
    • The executable is built in release mode without debug information. This usually elicits a warning to that effect when starting the debug session.

  3. #3
    Join Date
    Jul 2010
    Location
    Germany
    Posts
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt Creator debugging problem - GDB

    Hi,

    have the same problem and warning at a QtTest project. Other projects stops at breakpoints but not my test project. The test runs without errors.

    System: OpenSuse 11.3 64Bit (german)
    Qt 4.8.1 64Bit
    QCreator 2.4.1 64Bit
    GNU gdb (GDB) SUSE (7.1-3.12)

    Settings:
    CONFIG += debug
    QT += testlib
    QT -= gui
    - No qml debugging

    tst_test.cpp
    Qt Code:
    1. ...
    2. QTEST_APPLESS_MAIN(AircraftMotionTest)
    3.  
    4. #include "tst_AircraftMotionTest.moc"
    To copy to clipboard, switch view to plain text mode 

    What I have done so far:
    - Ensure that it is a debug version. A qDebug statement is printed out. But a breakpoint at this statement is ignored.
    - Open the test project alone. Nothing changed


    Why breakpoints are ignored at my test project?

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

    Default Re: Qt Creator debugging problem - GDB

    You could check whether there's something questionable in the debugger log (Windows->Views->Debugger Log).

  5. #5
    Join Date
    Jan 2013
    Posts
    7
    Thanks
    1
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qt Creator debugging problem - GDB

    have you solved this problem??
    i have similar problem like you.

    it's all about my CONFIG of can not debugging;
    i modified my 'CONFIG += release' to 'CONFIG += debug' or just delete 'release' or 'debug' in CONFIG, it works well. all those changes must rebuild.
    but the warning as you posted is still show up;

    I hope this can help you something.

    i will upgrade my GDB to see if it can works

Similar Threads

  1. Creator/debugging
    By jhowland in forum Qt Programming
    Replies: 1
    Last Post: 21st October 2010, 09:16
  2. Error when debugging with Qt creator
    By NewLegend in forum Qt Programming
    Replies: 3
    Last Post: 12th August 2010, 19:28
  3. qt creator debugging problem
    By sujan.dasmahapatra in forum Qt Programming
    Replies: 1
    Last Post: 16th December 2009, 21:10
  4. Debugging in QT Creator
    By cae in forum Qt Tools
    Replies: 6
    Last Post: 16th November 2009, 12:45
  5. debugging in QT Creator
    By talk2amulya in forum Qt Tools
    Replies: 3
    Last Post: 22nd February 2009, 06:50

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.