Debugger: Export BreakpointManager and some icons

Allow retrieving of breakpoint information without
the need to create a debugger engine.
Export some icons for re-use.

Change-Id: Ic3d5f22840c1b67e8b3e4e0892c204da3ab1af9e
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Christian Stenger
2022-07-29 14:47:22 +02:00
parent 7e37899565
commit cd071e299a
2 changed files with 9 additions and 6 deletions

View File

@@ -26,6 +26,7 @@
#pragma once #pragma once
#include "breakpoint.h" #include "breakpoint.h"
#include "debugger_global.h"
#include "debuggerprotocol.h" #include "debuggerprotocol.h"
#include <utils/filepath.h> #include <utils/filepath.h>
@@ -281,7 +282,7 @@ private:
DebuggerEngine * const m_engine; DebuggerEngine * const m_engine;
}; };
class BreakpointManager : public BreakpointManagerModel class DEBUGGER_EXPORT BreakpointManager : public BreakpointManagerModel
{ {
public: public:
BreakpointManager(); BreakpointManager();

View File

@@ -38,6 +38,13 @@ DEBUGGER_EXPORT extern const Utils::Icon RECORD_OFF;
DEBUGGER_EXPORT extern const Utils::Icon TRACEPOINT; DEBUGGER_EXPORT extern const Utils::Icon TRACEPOINT;
DEBUGGER_EXPORT extern const Utils::Icon TRACEPOINT_TOOLBAR; DEBUGGER_EXPORT extern const Utils::Icon TRACEPOINT_TOOLBAR;
// Used in Squish.
DEBUGGER_EXPORT extern const Utils::Icon LOCATION;
DEBUGGER_EXPORT extern const Utils::Icon DEBUG_CONTINUE_SMALL_TOOLBAR;
DEBUGGER_EXPORT extern const Utils::Icon STEP_OVER_TOOLBAR;
DEBUGGER_EXPORT extern const Utils::Icon STEP_INTO_TOOLBAR;
DEBUGGER_EXPORT extern const Utils::Icon STEP_OUT_TOOLBAR;
extern const Utils::Icon BREAKPOINT; extern const Utils::Icon BREAKPOINT;
extern const Utils::Icon BREAKPOINT_DISABLED; extern const Utils::Icon BREAKPOINT_DISABLED;
extern const Utils::Icon BREAKPOINT_PENDING; extern const Utils::Icon BREAKPOINT_PENDING;
@@ -47,7 +54,6 @@ extern const Utils::Icon WATCHPOINT;
extern const Utils::Icon CONTINUE; extern const Utils::Icon CONTINUE;
extern const Utils::Icon CONTINUE_FLAT; extern const Utils::Icon CONTINUE_FLAT;
extern const Utils::Icon DEBUG_CONTINUE_SMALL; extern const Utils::Icon DEBUG_CONTINUE_SMALL;
extern const Utils::Icon DEBUG_CONTINUE_SMALL_TOOLBAR;
extern const Utils::Icon INTERRUPT; extern const Utils::Icon INTERRUPT;
extern const Utils::Icon INTERRUPT_FLAT; extern const Utils::Icon INTERRUPT_FLAT;
extern const Utils::Icon STOP; extern const Utils::Icon STOP;
@@ -56,7 +62,6 @@ extern const Utils::Icon DEBUG_INTERRUPT_SMALL;
extern const Utils::Icon DEBUG_INTERRUPT_SMALL_TOOLBAR; extern const Utils::Icon DEBUG_INTERRUPT_SMALL_TOOLBAR;
extern const Utils::Icon DEBUG_EXIT_SMALL; extern const Utils::Icon DEBUG_EXIT_SMALL;
extern const Utils::Icon DEBUG_EXIT_SMALL_TOOLBAR; extern const Utils::Icon DEBUG_EXIT_SMALL_TOOLBAR;
extern const Utils::Icon LOCATION;
extern const Utils::Icon REVERSE_LOCATION; extern const Utils::Icon REVERSE_LOCATION;
extern const Utils::Icon REVERSE_MODE; extern const Utils::Icon REVERSE_MODE;
extern const Utils::Icon DIRECTION_FORWARD; extern const Utils::Icon DIRECTION_FORWARD;
@@ -68,11 +73,8 @@ extern const Utils::Icon SELECT_TOOLBAR;
extern const Utils::Icon EMPTY; extern const Utils::Icon EMPTY;
extern const Utils::Icon STEP_OVER; extern const Utils::Icon STEP_OVER;
extern const Utils::Icon STEP_OVER_TOOLBAR;
extern const Utils::Icon STEP_INTO; extern const Utils::Icon STEP_INTO;
extern const Utils::Icon STEP_INTO_TOOLBAR;
extern const Utils::Icon STEP_OUT; extern const Utils::Icon STEP_OUT;
extern const Utils::Icon STEP_OUT_TOOLBAR;
extern const Utils::Icon RESTART; extern const Utils::Icon RESTART;
extern const Utils::Icon RESTART_TOOLBAR; extern const Utils::Icon RESTART_TOOLBAR;
extern const Utils::Icon SINGLE_INSTRUCTION_MODE; extern const Utils::Icon SINGLE_INSTRUCTION_MODE;