From cd071e299ae93774ae9cbfc7a5bb15192936cffd Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Fri, 29 Jul 2022 14:47:22 +0200 Subject: [PATCH] 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 Reviewed-by: --- src/plugins/debugger/breakhandler.h | 3 ++- src/plugins/debugger/debuggericons.h | 12 +++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/plugins/debugger/breakhandler.h b/src/plugins/debugger/breakhandler.h index e3949264b54..4d77bfc9620 100644 --- a/src/plugins/debugger/breakhandler.h +++ b/src/plugins/debugger/breakhandler.h @@ -26,6 +26,7 @@ #pragma once #include "breakpoint.h" +#include "debugger_global.h" #include "debuggerprotocol.h" #include @@ -281,7 +282,7 @@ private: DebuggerEngine * const m_engine; }; -class BreakpointManager : public BreakpointManagerModel +class DEBUGGER_EXPORT BreakpointManager : public BreakpointManagerModel { public: BreakpointManager(); diff --git a/src/plugins/debugger/debuggericons.h b/src/plugins/debugger/debuggericons.h index 1dc8352428e..7ef676e46fc 100644 --- a/src/plugins/debugger/debuggericons.h +++ b/src/plugins/debugger/debuggericons.h @@ -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_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_DISABLED; 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_FLAT; 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_FLAT; 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_EXIT_SMALL; extern const Utils::Icon DEBUG_EXIT_SMALL_TOOLBAR; -extern const Utils::Icon LOCATION; extern const Utils::Icon REVERSE_LOCATION; extern const Utils::Icon REVERSE_MODE; 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 STEP_OVER; -extern const Utils::Icon STEP_OVER_TOOLBAR; 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_TOOLBAR; extern const Utils::Icon RESTART; extern const Utils::Icon RESTART_TOOLBAR; extern const Utils::Icon SINGLE_INSTRUCTION_MODE;