File indexing completed on 2024-05-12 04:39:57

0001 /*
0002     SPDX-FileCopyrightText: 2009 Niko Sams <niko.sams@gmail.com>
0003     SPDX-FileCopyrightText: 2013 Vlas Puhov <vlas.puhov@mail.ru>
0004 
0005     SPDX-License-Identifier: LGPL-2.0-only
0006 */
0007 
0008 #ifndef GDBTEST_H
0009 #define GDBTEST_H
0010 
0011 #include <QObject>
0012 
0013 class IExecutePlugin;
0014 
0015 namespace KDevelop {
0016 class TestCore;
0017 }
0018 namespace KDevMI {
0019 namespace GDB {
0020 
0021 class GdbTest : public QObject
0022 {
0023     Q_OBJECT
0024 
0025 private Q_SLOTS:
0026     void initTestCase();
0027     void cleanupTestCase();
0028     void init();
0029 
0030     void testStdOut();
0031     void testEnvironmentSet();
0032     void testBreakpoint();
0033     void testDisableBreakpoint();
0034     void testChangeLocationBreakpoint();
0035     void testDeleteBreakpoint();
0036     void testPendingBreakpoint();
0037     void testUpdateBreakpoint();
0038     void testIgnoreHitsBreakpoint();
0039     void testConditionBreakpoint();
0040     void testBreakOnWriteBreakpoint();
0041     void testBreakOnWriteWithConditionBreakpoint();
0042     void testBreakOnReadBreakpoint();
0043     void testBreakOnReadBreakpoint2();
0044     void testBreakOnAccessBreakpoint();
0045     void testInsertBreakpointWhileRunning();
0046     void testInsertBreakpointWhileRunningMultiple();
0047     void testInsertBreakpointFunctionName();
0048     void testManualBreakpoint();
0049     void testShowStepInSource();
0050     void testStack();
0051     void testStackFetchMore();
0052     void testStackDeactivateAndActive();
0053     void testStackSwitchThread();
0054     void testAttach();
0055     void testManualAttach();
0056     void testCoreFile();
0057     void testVariablesLocals();
0058     void testVariablesLocalsStruct();
0059     void testVariablesWatches();
0060     void testVariablesWatchesQuotes();
0061     void testVariablesWatchesTwoSessions();
0062     void testVariablesStopDebugger();
0063     void testVariablesStartSecondSession();
0064     void testVariablesSwitchFrame();
0065     void testVariablesQuicklySwitchFrame();
0066     void testSegfaultDebugee();
0067     void testSwitchFrameGdbConsole();
0068     void testInsertAndRemoveBreakpointWhileRunning();
0069     void testCommandOrderFastStepping();
0070     void testPickupManuallyInsertedBreakpoint();
0071     void testPickupManuallyInsertedBreakpointOnlyOnce();
0072     void testPickupCatchThrowOnlyOnce();
0073     void testRunGdbScript();
0074     void testRemoteDebug();
0075     void testRemoteDebugInsertBreakpoint();
0076     void testRemoteDebugInsertBreakpointPickupOnlyOnce();
0077     void testBreakpointWithSpaceInPath();
0078     void testBreakpointDisabledOnStart();
0079     void testCatchpoint();
0080     void testThreadAndFrameInfo();
0081     void parseBug304730();
0082     void testMultipleLocationsBreakpoint();
0083     void testBug301287();
0084     void testMultipleBreakpoint();
0085     void testRegularExpressionBreakpoint();
0086     void testChangeBreakpointWhileRunning();
0087     void testDebugInExternalTerminal();
0088     void testPathWithSpace();
0089 
0090 private:
0091     IExecutePlugin* m_iface;
0092 };
0093 
0094 } // end of namespace GDB
0095 } // end of namespace KDevMI
0096 
0097 #endif // GDBTEST_H