From e9a43f1f66b36d26f6eb944489083a0cb154a9f7 Mon Sep 17 00:00:00 2001 From: Mateusz Hoppe Date: Wed, 2 Jun 2021 15:24:43 +0000 Subject: [PATCH] Add readModuleDebugArea() method Related-To: NEO-5940 Signed-off-by: Mateusz Hoppe --- level_zero/tools/source/debug/debug_session.h | 4 ++++ .../tools/test/unit_tests/sources/debug/mock_debug_session.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/level_zero/tools/source/debug/debug_session.h b/level_zero/tools/source/debug/debug_session.h index eac5e0dfe0..a7f1e51125 100644 --- a/level_zero/tools/source/debug/debug_session.h +++ b/level_zero/tools/source/debug/debug_session.h @@ -6,6 +6,7 @@ */ #pragma once +#include "level_zero/core/source/debugger/debugger_l0.h" #include struct _zet_debug_session_handle_t {}; @@ -50,6 +51,9 @@ struct RootDebugSession : DebugSession { protected: RootDebugSession(const zet_debug_config_t &config, Device *device) : DebugSession(config, device){}; + + virtual bool readModuleDebugArea() = 0; + DebugAreaHeader debugArea; }; } // namespace L0 \ No newline at end of file diff --git a/level_zero/tools/test/unit_tests/sources/debug/mock_debug_session.h b/level_zero/tools/test/unit_tests/sources/debug/mock_debug_session.h index e3f430cb35..ac2c2677f4 100644 --- a/level_zero/tools/test/unit_tests/sources/debug/mock_debug_session.h +++ b/level_zero/tools/test/unit_tests/sources/debug/mock_debug_session.h @@ -61,6 +61,10 @@ struct DebugSessionMock : public L0::RootDebugSession { asyncThreadStarted = true; } + bool readModuleDebugArea() override { + return true; + } + zet_debug_config_t config; bool asyncThreadStarted = false; };