IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Qt Discussion :

Point d'arrêt dans un slot ignoré par Gdb


Sujet :

Qt

  1. #1
    Membre habitué
    Avatar de Nykoo
    Profil pro
    Inscrit en
    Février 2007
    Messages
    234
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2007
    Messages : 234
    Points : 166
    Points
    166
    Par défaut Point d'arrêt dans un slot ignoré par Gdb
    Bonjour, je n'arrive pas à créer de breakpoint dans un slot. Lorsque je lance le debug il ignore mon breakpoint. Et pour cause, Gdb me dit qu'il ne trouve pas la ligne correspondant à mon breakpoint dans le fichier voulu. Pourtant les breakpoints marchent très bien ailleurs dans le code. L'option -g est bien présente lors de la compilation.

    J'ai fait un projet minimal qui fait ressortir le problème, avec MinGW (gcc en version 4.6.2) et Qt (en version 4.8.0):
    - main.cpp
    - test.h
    - test.pro

    main.cpp
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    #include <QtCore/QCoreApplication>
    #include "test.h"
    #include <QMetaObject>
     
    int main(int argc, char *argv[])
    {
        QCoreApplication a(argc, argv);
     
        Test* t = new Test;
        QMetaObject::invokeMethod(t,"mySlot",Qt::QueuedConnection);
     
        return a.exec();
    }
    test.h (breakpoint à la ligne 12)
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    #ifndef TEST_H
    #define TEST_H
     
    #include <QObject>
     
    class Test: public QObject {
        Q_OBJECT
    public:
        Test(){}
    private slots:
        void mySlot() {
            int x;
            x = 0;
        }
    };
     
    #endif // TEST_H
    test.pro
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    QT       += core
    QT       -= gui
     
    TARGET = Test
    CONFIG   += console
    CONFIG   -= app_bundle
     
    TEMPLATE = app
     
     
    SOURCES += main.cpp
     
    HEADERS += \
        test.h
    Je lance Gdb et comme je le disais il ne trouve pas la ligne 12 dans le fichier "test.h":
    error,msg="No line 12 in file \"test.h\"."
    Pourtant si je lance la commande list dans Gdb le fichier "test.h" est bien complet et la ligne 12 est bien là! En fait je peux seulement poser un breakpoint jusqu'a la ligne 9, Gdb ne voit pas le reste.

    La sortie complète de Gdb quand je le lance dans Qt:

    sLancer le débogueur 'GdbEngine' pour l'ABI "x86-windows-msys-pe-32bit"...
    dStart parameters: 'Test' mode: 1
    dABI: x86-windows-msys-pe-32bit
    dExecutable: D:\Documents\Programmes\Projets Qt\Test\debug\Test.exe [terminal]
    dDirectory: D:\Documents\Programmes\Projets Qt\Test
    dDebugger: C:\Dev\qtcreator-2.4.0\pythongdb\gdb-i686-pc-mingw32.exe
    dProject: D:\Documents\Programmes\Projets Qt\Test (built: D:\Documents\Programmes\Projets Qt\Test)
    dQt: C:\Dev\Qt_4.8.0
    dQML server: 127.0.0.1:3768
    dSysroot:
    dDebug Source Loaction:
    dSymbol file:
    dDumper libraries: C:\Dev\Qt_4.8.0\qtc-debugging-helper\ C:\Dev\qtcreator-2.4.0\qtc-debugging-helper\25110896\ C:\Users\Nicolas\AppData\Local\Nokia\QtCreator\qtc-debugging-helper\25110896\
    d
    dDebugger settings:
    dUseAlternatingRowColours: false (default: false)
    dFontSizeFollowsEditor: false (default: false)
    dUseMessageBoxForSignals: true (default: true)
    dAutoQuit: false (default: false)
    dLogTimeStamps: false (default: false)
    dVerboseLog: false (default: false)
    dCloseBuffersOnExit: false (default: false)
    dSwitchModeOnExit: false (default: false)
    dUseDebuggingHelper: true (default: true)
    dUseCodeModel: true (default: true)
    dShowThreadNames: false (default: false)
    dUseToolTips: false (default: false)
    dUseToolTipsInLocalsView: false (default: false)
    dUseToolTipsInBreakpointsView: false (default: false)
    dUseAddressInBreakpointsView: false (default: false)
    dUseAddressInStackView: false (default: false)
    dRegisterForPostMortem: true (default: false) ***
    dLoadGdbInit: true (default: true)
    dScriptFile: (default: )
    dWatchdogTimeout: 20 (default: 20)
    dAutoEnrichParameters: false (default: false)
    dTargetAsync: false (default: false)
    dMaximalStackDepth: 20 (default: 20)
    dAlwaysAdjustStackColumnWidths: false (default: false)
    dShowStandardNamespace: true (default: true)
    dShowQtNamespace: true (default: true)
    dSortStructMembers: true (default: true)
    dAutoDerefPointers: true (default: true)
    dAlwaysAdjustLocalsColumnWidths: false (default: false)
    dListSourceFiles: false (default: false)
    dSkipKnownFrames: false (default: false)
    dEnableReverseDebugging: false (default: false)
    dAllPluginBreakpoints: true (default: true)
    dSelectedPluginBreakpoints: false (default: false)
    dAdjustBreakpointLocations: true (default: true)
    dAlwaysAdjustBreakpointsColumnWidths: false (default: false)
    dNoPluginBreakpoints: false (default: false)
    dSelectedPluginBreakpointsPattern: .* (default: .*)
    dBreakOnThrow: false (default: false)
    dBreakOnCatch: false (default: false)
    dBreakOnWarning: false (default: false)
    dBreakOnFatal: false (default: false)
    dAlwaysAdjustRegistersColumnWidths: false (default: false)
    dAlwaysAdjustSnapshotsColumnWidths: false (default: false)
    dAlwaysAdjustThreadsColumnWidths: false (default: false)
    dAlwaysAdjustModulesColumnWidths: false (default: false)
    dState changed from DebuggerNotReady(0) to EngineSetupRequested(1).
    dQUEUE: SETUP ENGINE
    dCALL: SETUP ENGINE
    dTRYING TO START ADAPTER
    dENABLING TEST CASE: 0
    dSTARTING C:/Dev/qtcreator-2.4.0/pythongdb/gdb-i686-pc-mingw32.exe -i mi
    dGDB STARTED, INITIALIZING IT
    <30show version
    <31-list-features
    <32set print object on
    <33set breakpoint pending on
    <34set print elements 10000
    <35set overload-resolution off
    <36handle SIGSEGV nopass stop print
    <37set unwindonsignal on
    <38pwd
    <39set width 0
    <40set height 0
    <41set auto-solib-add on
    <42-interpreter-exec console "maintenance set internal-warning quit no"
    <43-interpreter-exec console "maintenance set internal-error quit no"
    <44-interpreter-exec console "disassemble 0 0"
    <45-interpreter-exec console "python execfile('C:/Dev/qtcreator-2.4.0/share/qtcreator/dumper/bridge.py')"
    <46-interpreter-exec console "python execfile('C:/Dev/qtcreator-2.4.0/share/qtcreator/dumper/dumper.py')"
    <47-interpreter-exec console "python execfile('C:/Dev/qtcreator-2.4.0/share/qtcreator/dumper/qttypes.py')"
    <48-interpreter-exec console "bbsetup"
    dADAPTER SUCCESSFULLY STARTED
    dNOTE: ENGINE SETUP OK
    dState changed from EngineSetupRequested(1) to EngineSetupOk(3).
    dQUEUE: SETUP INFERIOR
    dState changed from EngineSetupOk(3) to InferiorSetupRequested(4).
    dQUEUE: SETUP INFERIOR
    dCALL: SETUP INFERIOR
    sMise en place de l'inférieur...
    <49set substitute-path C:/iwmake/build_mingw_opensource C:/Dev/Qt_4.8.0
    <50set substitute-path C:/ndk_buildrepos/qt-desktop/src C:/Dev/Qt_4.8.0
    <51set substitute-path C:/qt-greenhouse/Trolltech/Code_less_create_more/Trolltech/Code_less_create_more/Troll/4.6/qt C:/Dev/Qt_4.8.0
    Attaching to 5872 (4648)
    dPrends note du pid 5872
    <52attach 5872
    >=thread-group-added,id="i1"
    >~"GNU gdb (GDB) 7.2\n"
    >~"Copyright (C) 2010 Free Software Foundation, Inc.\n"
    >~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n"
    >~"This GDB was configured as \"i686-pc-mingw32\".\nFor bug reporting instructions, please see:\n"
    >~"<http://www.gnu.org/software/gdb/bugs/>.\n"
    >&"show version\n"
    >~"GNU gdb (GDB) 7.2\n"
    >~"Copyright (C) 2010 Free Software Foundation, Inc.\n"
    >~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n"
    >~"This GDB was configured as \"i686-pc-mingw32\".\nFor bug reporting instructions, please see:\n"
    >~"<http://www.gnu.org/software/gdb/bugs/>.\n"
    >30^done
    dPARSING VERSION: 30^done
    d
    dSUPPORTED GDB VERSION GNU gdb (GDB) 7.2
    dCopyright (C) 2010 Free Software Foundation, Inc.
    dLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    dThis is free software: you are free to change and redistribute it.
    dThere is NO WARRANTY, to the extent permitted by law. Type "show copying"
    dand "show warranty" for details.
    dThis GDB was configured as "i686-pc-mingw32".
    dFor bug reporting instructions, please see:
    d<http://www.gnu.org/software/gdb/bugs/>.
    dGNU gdb (GDB) 7.2
    dCopyright (C) 2010 Free Software Foundation, Inc.
    dLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    dThis is free software: you are free to change and redistribute it.
    dThere is NO WARRANTY, to the extent permitted by law. Type "show copying"
    dand "show warranty" for details.
    dThis GDB was configured as "i686-pc-mingw32".
    dFor bug reporting instructions, please see:
    d<http://www.gnu.org/software/gdb/bugs/>.
    d
    dUSING GDB VERSION: 70200, BUILD: 2010
    >31^done,features=["frozen-varobjs","pending-breakpoints","thread-info","python"]
    dFEATURES: 31^done,data={features=["frozen-varobjs","pending-breakpoints","thread-info","python"]}
    d
    >&"set print object on\n"
    >32^done
    >&"set breakpoint pending on\n"
    >33^done
    >&"set print elements 10000\n"
    >34^done
    >&"set overload-resolution off\n"
    >35^done
    >&"handle SIGSEGV nopass stop print\n"
    >~"Signal Stop\tPrint\tPass to program\tDescription\n"
    >~"SIGSEGV Yes\tYes\tNo\t\tSegmentation fault\n"
    >36^done
    >&"set unwindonsignal on\n"
    >37^done
    >&"pwd\n"
    >~"Working directory C:\\Dev\\qtcreator-2.4.0.\n"
    >38^done
    >&"set width 0\n"
    >39^done
    >&"set height 0\n"
    >40^done
    >&"set auto-solib-add on\n"
    >41^done
    >42^done
    >43^done
    >&"A syntax error in expression, near `0'.\n"
    >44^error,msg="A syntax error in expression, near `0'."
    >45^done
    >46^done
    >47^done
    >~"dumpers=[{type=\"QLinkedList\",formats=\"\"},{type=\"QSize\",formats=\"\"},{type=\"QFileInfo\",formats=\"\"},{type=\"QAbstractItemModel\",formats=\"\"},{type=\"std__stack\",formats=\"\"},{type=\"QTextDocument\",formats=\"\"},{type=\"QTJSC__JSValue\",formats=\"\"},{type=\"__gnu_cxx__hash_set\",formats=\"\"},{type=\"QStringList\",formats=\"\"},{type=\"QRegion\",formats=\"\"},{type=\"std__wstring\",formats=\"\"},{type=\"QString\",formats=\"Inline,Separate Window\",editable=\"true\"},{type=\"QTextCodec\",formats=\"\"},{type=\"QBasicAtomicInt\",formats=\"\"},{type=\"QScriptValue\",formats=\"\"},{type=\"QTime\",formats=\"\"},{type=\"QSharedData\",formats=\"\"},{type=\"std__vector\",formats=\"\",editable=\"true\"},{type=\"QRegExp\",formats=\"\"},{type=\"QTextCursor\",formats=\"\"},{type=\"QxXmlAttributes\",formats=\"\"},{type=\"QDateTime\",formats=\"\"},{type=\"QList\",formats=\"\"},{type=\"QStandardItem\",formats=\"\"},{type=\"std__deque\",formats=\"\"},{type=\"QFixed\",formats=\"\"},{type=\"QHash\",formats=\"\"},{type=\"QSharedPointer\",formats=\"\"},{type=\"QUrl\",formats=\"\"},{type=\"std__set\",formats=\"\"},{type=\"std__list\",formats=\"\"},{type=\"std__basic_string\",formats=\"\"},{type=\"QPoint\",formats=\"\"},{type=\"QHostAddress\",formats=\"\"},{type=\"QStack\",formats=\"\"},{type=\"QScopedPointer\",formats=\"\"},{type=\"QRectF\",formats=\"\"},{type=\"QMultiMap\",formats=\"\"},{type=\"QMapNode\",formats=\"\"},{type=\"QModelIndex\",formats=\"Normal,Enhanced\"},{type=\"QLocale\",formats=\"\"},{type=\"QSharedDataPointer\",formats=\"\"},{type=\"QVariant\",formats=\"\"},{type=\"string\",formats=\"\",editable=\"true\"},{type=\"QBasicAtomicPointer\",formats=\"\"},{type=\"QVector\",formats=\"\",editable=\"true\"},{type=\"QDate\",formats=\"\"},{type=\"QFile\",formats=\"\"},{type=\"QAtomicInt\",formats=\"\"},{type=\"TBuf\",formats=\"\"},{type=\"QWeakPointer\",formats=\"\"},{type=\"QSizeF\",formats=\"\"},{type=\"__m128\",formats=\"As Floats,As Doubles\"},{type=\"boost__optional\",formats=\"\"},{type=\"wstring\",formats=\"\"},{type=\"QPointF\",formats=\"\"},{type=\"TLitC\",formats=\"\"},{type=\"QRect\",formats=\"\"},{type=\"QByteArray\",formats=\"\"},{type=\"QMap\",formats=\"\"},{type=\"boost__shared_ptr\",formats=\"\"},{type=\"QChar\",formats=\"\"},{type=\"QDir\",formats=\"\"},{type=\"QPixmap\",formats=\"\"},{type=\"QFlags\",formats=\"\"},{type=\"std__map\",formats=\"\"},{type=\"QHashNode\",formats=\"\"},{type=\"QTemporaryFile\",formats=\"\"},{type=\"QObject\",formats=\"\"},{type=\"Eigen__Matrix\",formats=\"\"},{type=\"std__string\",formats=\"\",editable=\"true\"},{type=\"QImage\",formats=\"Normal,Displayed\"},{type=\"QSet\",formats=\"\"},],hasInferiorThreadList=\"1\"\n"
    >48^done
    >&"set substitute-path C:/iwmake/build_mingw_opensource C:/Dev/Qt_4.8.0\n"
    >49^done
    >&"set substitute-path C:/ndk_buildrepos/qt-desktop/src C:/Dev/Qt_4.8.0\n"
    >50^done
    >&"set substitute-path C:/qt-greenhouse/Trolltech/Code_less_create_more/Trolltech/Code_less_create_more/Troll/4.6/qt C:/Dev/Qt_4.8.0\n"
    >51^done
    >&"attach 5872\n"
    >~"Attaching to process 5872\n"
    >=thread-group-started,id="i1",pid="5872"
    sGroup de thread i1 créé
    >=thread-created,id="1",group-id="i1"
    sThread 1 créé
    >~"[New Thread 5872.0x1228]\n"
    s[New Thread 5872.0x1228]
    >52^running
    Inferior attached, thread 4648 resumed
    sDéfinit les points d'arrêts...
    dDéfinit les points d'arrêts...
    <53-break-insert -f "\"test.h\":12"
    >*running,thread-id="all"
    >=thread-created,id="2",group-id="i1"
    sThread 2 créé
    >~"[New Thread 5872.0x680]\n"
    s[New Thread 5872.0x680]
    >*running,thread-id="all"
    dATTEMPT SYNC
    >=library-loaded,id="C:\\Windows\\SYSTEM32\\ntdll.dll",target-name="C:\\Windows\\SYSTEM32\\ntdll.dll",host-name="C:\\Windows\\SYSTEM32\\ntdll.dll",symbols-loaded="0",thread-group="i1"
    sBibliothèque C:\Windows\SYSTEM32\ntdll.dll chargée
    >=library-loaded,id="C:\\Windows\\system32\\kernel32.dll",target-name="C:\\Windows\\system32\\kernel32.dll",host-name="C:\\Windows\\system32\\kernel32.dll",symbols-loaded="0",thread-group="i1"
    sBibliothèque C:\Windows\system32\kernel32.dll chargée
    >=library-loaded,id="C:\\Windows\\system32\\KernelBase.dll",target-name="C:\\Windows\\system32\\KernelBase.dll",host-name="C:\\Windows\\system32\\KernelBase.dll",symbols-loaded="0",thread-group="i1"
    sBibliothèque C:\Windows\system32\KernelBase.dll chargée
    >=library-loaded,id="C:\\Windows\\system32\\msvcrt.dll",target-name="C:\\Windows\\system32\\msvcrt.dll",host-name="C:\\Windows\\system32\\msvcrt.dll",symbols-loaded="0",thread-group="i1"
    sBibliothèque C:\Windows\system32\msvcrt.dll chargée
    >=library-loaded,id="C:\\Dev\\MinGW\\bin\\libgcc_s_dw2-1.dll",target-name="C:\\Dev\\MinGW\\bin\\libgcc_s_dw2-1.dll",host-name="C:\\Dev\\MinGW\\bin\\libgcc_s_dw2-1.dll",symbols-loaded="0",thread-group="i1"
    sBibliothèque C:\Dev\MinGW\bin\libgcc_s_dw2-1.dll chargée
    >=library-loaded,id="C:\\Dev\\MinGW\\bin\\libstdc++-6.dll",target-name="C:\\Dev\\MinGW\\bin\\libstdc++-6.dll",host-name="C:\\Dev\\MinGW\\bin\\libstdc++-6.dll",symbols-loaded="0",thread-group="i1"
    sBibliothèque C:\Dev\MinGW\bin\libstdc++-6.dll chargée
    >=library-loaded,id="C:\\Dev\\Qt_4.8.0\\bin\\QtCored4.dll",target-name="C:\\Dev\\Qt_4.8.0\\bin\\QtCored4.dll",host-name="C:\\Dev\\Qt_4.8.0\\bin\\QtCored4.dll",symbols-loaded="0",thread-group="i1"
    sBibliothèque C:\Dev\Qt_4.8.0\bin\QtCored4.dll chargée
    >=library-loaded,id="C:\\Windows\\system32\\advapi32.dll",target-name="C:\\Windows\\system32\\advapi32.dll",host-name="C:\\Windows\\system32\\advapi32.dll",symbols-loaded="0",thread-group="i1"
    sBibliothèque C:\Windows\system32\advapi32.dll chargée
    >=library-loaded,id="C:\\Windows\\SYSTEM32\\sechost.dll",target-name="C:\\Windows\\SYSTEM32\\sechost.dll",host-name="C:\\Windows\\SYSTEM32\\sechost.dll",symbols-loaded="0",thread-group="i1"
    sBibliothèque C:\Windows\SYSTEM32\sechost.dll chargée
    >=library-loaded,id="C:\\Windows\\system32\\rpcrt4.dll",target-name="C:\\Windows\\system32\\rpcrt4.dll",host-name="C:\\Windows\\system32\\rpcrt4.dll",symbols-loaded="0",thread-group="i1"
    sBibliothèque C:\Windows\system32\rpcrt4.dll chargée
    >=library-loaded,id="C:\\Dev\\MinGW\\bin\\mingwm10.dll",target-name="C:\\Dev\\MinGW\\bin\\mingwm10.dll",host-name="C:\\Dev\\MinGW\\bin\\mingwm10.dll",symbols-loaded="0",thread-group="i1"
    sBibliothèque C:\Dev\MinGW\bin\mingwm10.dll chargée
    >=library-loaded,id="C:\\Windows\\system32\\ole32.dll",target-name="C:\\Windows\\system32\\ole32.dll",host-name="C:\\Windows\\system32\\ole32.dll",symbols-loaded="0",thread-group="i1"
    sBibliothèque C:\Windows\system32\ole32.dll chargée
    >=library-loaded,id="C:\\Windows\\system32\\gdi32.dll",target-name="C:\\Windows\\system32\\gdi32.dll",host-name="C:\\Windows\\system32\\gdi32.dll",symbols-loaded="0",thread-group="i1"
    sBibliothèque C:\Windows\system32\gdi32.dll chargée
    >=library-loaded,id="C:\\Windows\\system32\\user32.dll",target-name="C:\\Windows\\system32\\user32.dll",host-name="C:\\Windows\\system32\\user32.dll",symbols-loaded="0",thread-group="i1"
    sBibliothèque C:\Windows\system32\user32.dll chargée
    >=library-loaded,id="C:\\Windows\\system32\\lpk.dll",target-name="C:\\Windows\\system32\\lpk.dll",host-name="C:\\Windows\\system32\\lpk.dll",symbols-loaded="0",thread-group="i1"
    sBibliothèque C:\Windows\system32\lpk.dll chargée
    >=library-loaded,id="C:\\Windows\\system32\\usp10.dll",target-name="C:\\Windows\\system32\\usp10.dll",host-name="C:\\Windows\\system32\\usp10.dll",symbols-loaded="0",thread-group="i1"
    sBibliothèque C:\Windows\system32\usp10.dll chargée
    >=library-loaded,id="C:\\Windows\\system32\\ws2_32.dll",target-name="C:\\Windows\\system32\\ws2_32.dll",host-name="C:\\Windows\\system32\\ws2_32.dll",symbols-loaded="0",thread-group="i1"
    sBibliothèque C:\Windows\system32\ws2_32.dll chargée
    >=library-loaded,id="C:\\Windows\\system32\\nsi.dll",target-name="C:\\Windows\\system32\\nsi.dll",host-name="C:\\Windows\\system32\\nsi.dll",symbols-loaded="0",thread-group="i1"
    sBibliothèque C:\Windows\system32\nsi.dll chargée
    >=library-loaded,id="C:\\Windows\\system32\\imm32.dll",target-name="C:\\Windows\\system32\\imm32.dll",host-name="C:\\Windows\\system32\\imm32.dll",symbols-loaded="0",thread-group="i1"
    sBibliothèque C:\Windows\system32\imm32.dll chargée
    >=library-loaded,id="C:\\Windows\\system32\\msctf.dll",target-name="C:\\Windows\\system32\\msctf.dll",host-name="C:\\Windows\\system32\\msctf.dll",symbols-loaded="0",thread-group="i1"
    sBibliothèque C:\Windows\system32\msctf.dll chargée
    >~"Load new symbol table from \"D:\\Documents\\Programmes\\Projets Qt\\Test\\debug\\Test.exe\"? (y or n) [answered Y; input not from terminal]\n"
    >~"Reading symbols from D:\\Documents\\Programmes\\Projets Qt\\Test\\debug\\Test.exe..."
    sLecture de D:\Documents\Programmes\Projets Qt\Test\debug\Test.exe......
    >~"done.\n"
    >=library-loaded,id="C:\\Windows\\system32\\uxtheme.dll",target-name="C:\\Windows\\system32\\uxtheme.dll",host-name="C:\\Windows\\system32\\uxtheme.dll",symbols-loaded="0",thread-group="i1"
    sBibliothèque C:\Windows\system32\uxtheme.dll chargée
    >=library-loaded,id="C:\\Program Files\\Common Files\\microsoft shared\\ink\\tiptsf.dll",target-name="C:\\Program Files\\Common Files\\microsoft shared\\ink\\tiptsf.dll",host-name="C:\\Program Files\\Common Files\\microsoft shared\\ink\\tiptsf.dll",symbols-loaded="0",thread-group="i1"
    sBibliothèque C:\Program Files\Common Files\microsoft shared\ink\tiptsf.dll chargée
    >=library-loaded,id="C:\\Windows\\system32\\oleaut32.dll",target-name="C:\\Windows\\system32\\oleaut32.dll",host-name="C:\\Windows\\system32\\oleaut32.dll",symbols-loaded="0",thread-group="i1"
    sBibliothèque C:\Windows\system32\oleaut32.dll chargée
    >=library-loaded,id="C:\\Program Files\\DeskSpace\\otomowindow1589.dll",target-name="C:\\Program Files\\DeskSpace\\otomowindow1589.dll",host-name="C:\\Program Files\\DeskSpace\\otomowindow1589.dll",symbols-loaded="0",thread-group="i1"
    sBibliothèque C:\Program Files\DeskSpace\otomowindow1589.dll chargée
    >=library-loaded,id="C:\\Windows\\system32\\winmm.dll",target-name="C:\\Windows\\system32\\winmm.dll",host-name="C:\\Windows\\system32\\winmm.dll",symbols-loaded="0",thread-group="i1"
    sBibliothèque C:\Windows\system32\winmm.dll chargée
    >=library-loaded,id="C:\\Windows\\system32\\wininet.dll",target-name="C:\\Windows\\system32\\wininet.dll",host-name="C:\\Windows\\system32\\wininet.dll",symbols-loaded="0",thread-group="i1"
    sBibliothèque C:\Windows\system32\wininet.dll chargée
    >=library-loaded,id="C:\\Windows\\system32\\shlwapi.dll",target-name="C:\\Windows\\system32\\shlwapi.dll",host-name="C:\\Windows\\system32\\shlwapi.dll",symbols-loaded="0",thread-group="i1"
    sBibliothèque C:\Windows\system32\shlwapi.dll chargée
    >=library-loaded,id="C:\\Windows\\system32\\urlmon.dll",target-name="C:\\Windows\\system32\\urlmon.dll",host-name="C:\\Windows\\system32\\urlmon.dll",symbols-loaded="0",thread-group="i1"
    sBibliothèque C:\Windows\system32\urlmon.dll chargée
    >=library-loaded,id="C:\\Windows\\system32\\crypt32.dll",target-name="C:\\Windows\\system32\\crypt32.dll",host-name="C:\\Windows\\system32\\crypt32.dll",symbols-loaded="0",thread-group="i1"
    sBibliothèque C:\Windows\system32\crypt32.dll chargée
    >=library-loaded,id="C:\\Windows\\system32\\msasn1.dll",target-name="C:\\Windows\\system32\\msasn1.dll",host-name="C:\\Windows\\system32\\msasn1.dll",symbols-loaded="0",thread-group="i1"
    sBibliothèque C:\Windows\system32\msasn1.dll chargée
    >=library-loaded,id="C:\\Windows\\system32\\iertutil.dll",target-name="C:\\Windows\\system32\\iertutil.dll",host-name="C:\\Windows\\system32\\iertutil.dll",symbols-loaded="0",thread-group="i1"
    sBibliothèque C:\Windows\system32\iertutil.dll chargée
    >=library-loaded,id="C:\\Windows\\system32\\version.dll",target-name="C:\\Windows\\system32\\version.dll",host-name="C:\\Windows\\system32\\version.dll",symbols-loaded="0",thread-group="i1"
    sBibliothèque C:\Windows\system32\version.dll chargée
    >=library-loaded,id="C:\\Windows\\system32\\dwmapi.dll",target-name="C:\\Windows\\system32\\dwmapi.dll",host-name="C:\\Windows\\system32\\dwmapi.dll",symbols-loaded="0",thread-group="i1"
    sBibliothèque C:\Windows\system32\dwmapi.dll chargée
    >~"[Switching to Thread 5872.0x680]\n"
    >*stopped
    >53^error,msg="No line 12 in file \"test.h\"."
    <54break test.h:12
    >&"break test.h:12\n"
    >&"No line 12 in file \"test.h\".\n"
    >54^error,msg="No line 12 in file \"test.h\"."
    dALL COMMANDS DONE; INVOKING CALLBACK
    <55maint print msymbols C:/Users/Nicolas/AppData/Local/Temp/gdb_ns_.Pf3712
    >&"maint print msymbols C:/Users/Nicolas/AppData/Local/Temp/gdb_ns_.Pf3712\n"
    >55^done
    dFOUND NON-NAMESPACED QT
    dNOTE: INFERIOR SETUP OK
    dState changed from InferiorSetupRequested(4) to InferiorSetupOk(6).
    dState changed from InferiorSetupOk(6) to EngineRunRequested(7).
    dQUEUE: RUN ENGINE
    dCALL: RUN ENGINE
    dNOTE: ENGINE RUN AND INFERIOR STOP OK
    dState changed from EngineRunRequested(7) to InferiorStopOk(14).
    dNOTE: INFERIOR RUN REQUESTED
    dState changed from InferiorStopOk(14) to InferiorRunRequested(10).
    sExécution demandée...
    <56-exec-continue
    >56^running
    dNOTE: INFERIOR RUN OK
    dState changed from InferiorRunRequested(10) to InferiorRunOk(11).
    >*running,thread-id="all"
    >=thread-exited,id="2",group-id="i1"
    sThread 2 dans le groupe i1 terminé
    dQUIT DEBUGGER REQUESTED IN STATE 11
    dState changed from InferiorRunOk(11) to InferiorStopRequested(13).
    dCALL: INTERRUPT INFERIOR
    sArrêt demandé...
    dTRYING TO INTERRUPT INFERIOR
    >=thread-created,id="3",group-id="i1"
    sThread 3 créé
    >~"[New Thread 5872.0x1730]\n"
    s[New Thread 5872.0x1730]
    >*running,thread-id="all"
    >~"[Switching to Thread 5872.0x1730]\n"
    >*stopped,reason="signal-received",signal-name="SIGTRAP",signal-meaning="Trace/breakpoint trap",frame={addr="0x76f83259",func="ntdll!DbgUserBreakPoint",args=[],from="C:\\Windows\\SYSTEM32\\ntdll.dll"},thread-id="3",stopped-threads="all"
    dNOTE: INFERIOR STOP OK
    dNOTE: ... WHILE DYING.
    dNOTE: ... FORWARDING TO 'STOP OK'.
    dState changed from InferiorStopRequested(13) to InferiorStopOk(14).
    dState changed from InferiorStopOk(14) to InferiorShutdownRequested(17).
    dQUEUE: SHUTDOWN INFERIOR
    dNOTE: ... IGNORING STOP MESSAGE
    >=thread-selected,id="3"
    sThread 3 sélectionné
    dCALL: SHUTDOWN INFERIOR
    <57kill
    >&"kill\n"
    >~"Kill the program being debugged? (y or n) [answered Y; input not from terminal]\n"
    >=thread-exited,id="3",group-id="i1"
    sThread 3 dans le groupe i1 terminé
    >=thread-exited,id="1",group-id="i1"
    sThread 1 dans le groupe i1 terminé
    >=thread-group-exited,id="i1"
    sGroupe de thread i1 terminé
    >57^done
    dINFERIOR SUCCESSFULLY SHUT DOWN
    dState changed from InferiorShutdownRequested(17) to InferiorShutdownOk(19).
    dState changed from InferiorShutdownOk(19) to EngineShutdownRequested(20).
    dQUEUE: SHUTDOWN ENGINE
    dCALL: SHUTDOWN ENGINE
    dINITIATE GDBENGINE SHUTDOWN IN STATE 0, PROC: 2
    <58-gdb-exit
    >58^exit
    dGDB CLAIMS EXIT; WAITING
    dGDB PROCESS FINISHED, status 0, code 0
    dNOTE: ENGINE SHUTDOWN OK
    dState changed from EngineShutdownRequested(20) to EngineShutdownOk(22).
    dState changed from EngineShutdownOk(22) to DebuggerFinished(23).
    dQUEUE: FINISH DEBUGGER
    dNOTE: FINISH DEBUGGER
    dHANDLE RUNCONTROL FINISHED
    sDébogage terminé.
    dSTUB EXITED EXPECTEDLY
    J'ai un vrai projet, qui contient de nombreux slots, dans lesquels je les breakpoints sont pris en compte (compilé avec la même config (Qt 4.8.0 et gcc/g++ en 4.6.2).

    Je ne vois pas comment faire, si quelqu'un voit quelque chose qui puisse m'aider je l'en remercie d'avance.

    J'ai simplifié un problème qui est apparu dans mes tests unitaires. J'utilise QTest::qExec(TestClass) pour lancer les slots private contenus dans TestClass. C'est pour cela que j'ai utilisé "private slots" et non "public slots" dans mon exemple.

  2. #2
    Membre habitué
    Avatar de Nykoo
    Profil pro
    Inscrit en
    Février 2007
    Messages
    234
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2007
    Messages : 234
    Points : 166
    Points
    166
    Par défaut
    Après avoir vu ça: http://www.qtcentre.org/threads/3080...-will-not-stop j'ai essayé de faire générer les moc dans le même dossier que les fichiers sources main.cpp et test.h en ajoutant dans le projet la ligne:

    Et là ça marche. Ce qui est étrange ce que mon gros projet qui marche n'a pas les moc dans le même dossier que les sources. Peut être parce que mon test est type console alors que l'autre projet en GUI? Je cherche encore...

  3. #3
    Membre expérimenté

    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Mai 2009
    Messages
    1 009
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 35
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Mai 2009
    Messages : 1 009
    Points : 1 738
    Points
    1 738
    Par défaut
    Apparemment ça vient du fait que la définition est dans le .h . Si tu la mets dans le .cpp tu peux y mettre un point d'arrêt. Je ne peux pas t'en dire plus.

  4. #4
    Membre habitué
    Avatar de Nykoo
    Profil pro
    Inscrit en
    Février 2007
    Messages
    234
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2007
    Messages : 234
    Points : 166
    Points
    166
    Par défaut
    En effet. Ca ne doit plus marcher avec les version plus récentes de Qt ou gcc (l'erreur est apparue après un changement de version je pense).

Discussions similaires

  1. Point d'arrêt dans Zend Studio
    Par Claude_Azoulai dans le forum Zend Studio
    Réponses: 6
    Dernier message: 04/03/2008, 22h01
  2. [visual studio 2003] Point d'arrêt dans un ascx
    Par trihanhcie dans le forum ASP.NET
    Réponses: 9
    Dernier message: 05/09/2007, 08h32
  3. Réponses: 11
    Dernier message: 05/04/2007, 13h13
  4. Réponses: 5
    Dernier message: 20/04/2006, 11h31
  5. Point d'arrêt dans le programme
    Par jmde dans le forum Access
    Réponses: 9
    Dernier message: 20/10/2005, 21h06

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo