Moved GdbHelpMonitorInfo.txt

This commit is contained in:
Nav
2022-12-09 22:26:26 +00:00
parent 13cf4eb3a4
commit b8c83c87fc
4 changed files with 16 additions and 4 deletions

View File

@@ -74,7 +74,6 @@ qt_add_resources(
FILES FILES
"./resources/bloom.template.yaml" "./resources/bloom.template.yaml"
"./resources/help.txt" "./resources/help.txt"
"./resources/gdbHelpMonitorInfo.txt"
) )
add_subdirectory(src) add_subdirectory(src)

View File

@@ -36,3 +36,14 @@ target_sources(
${CMAKE_CURRENT_SOURCE_DIR}/Gdb/AvrGdb/CommandPackets/FlashWrite.cpp ${CMAKE_CURRENT_SOURCE_DIR}/Gdb/AvrGdb/CommandPackets/FlashWrite.cpp
${CMAKE_CURRENT_SOURCE_DIR}/Gdb/AvrGdb/CommandPackets/FlashDone.cpp ${CMAKE_CURRENT_SOURCE_DIR}/Gdb/AvrGdb/CommandPackets/FlashDone.cpp
) )
# DebugServer resources
qt_add_resources(
Bloom
"DebugServerResources"
PREFIX
"/compiled/src/DebugServer"
FILES
# GDB RSP Server
"./Gdb/Resources/GdbHelpMonitorInfo.txt"
)

View File

@@ -28,11 +28,13 @@ namespace Bloom::DebugServer::Gdb::CommandPackets
try { try {
/* /*
* The file gdbHelpMonitorInfo.txt is included in the binary image as a resource. See the root-level * The file GdbHelpMonitorInfo.txt is included in the binary image as a resource.
* CMakeLists.txt for more. * See src/DebugServer/CMakeLists.txt for more.
*/ */
auto helpFile = QFile( auto helpFile = QFile(
QString::fromStdString(Paths::compiledResourcesPath() + "/resources/gdbHelpMonitorInfo.txt") QString::fromStdString(
Paths::compiledResourcesPath() + "/src/DebugServer/Gdb/Resources/GdbHelpMonitorInfo.txt"
)
); );
if (!helpFile.open(QIODevice::ReadOnly)) { if (!helpFile.open(QIODevice::ReadOnly)) {