File indexing completed on 2024-04-28 04:38:35

0001 /*
0002     SPDX-FileCopyrightText: 2009 Vladimir Prus <ghost@cs.msu.su>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef KDEVELOP_MI_FRAMESTACKMODEL_H
0008 #define KDEVELOP_MI_FRAMESTACKMODEL_H
0009 
0010 #include <debugger/framestack/framestackmodel.h>
0011 
0012 namespace KDevMI {
0013 
0014 namespace MI {
0015 struct ResultRecord;
0016 }
0017 
0018 class MIDebugSession;
0019 
0020 class MIFrameStackModel : public KDevelop::FrameStackModel
0021 {
0022     Q_OBJECT
0023 
0024 public:
0025     explicit MIFrameStackModel( MIDebugSession* session);
0026 
0027     MIDebugSession* session();
0028 
0029 protected: // FrameStackModel overrides
0030     void fetchThreads() override;
0031     void fetchFrames(int threadNumber, int from, int to) override;
0032 
0033 private:
0034     void handleThreadInfo(const MI::ResultRecord& r);
0035 };
0036 
0037 } // end of namespace KDevMI
0038 
0039 #endif