From a53568bf5de7a854c0bb4432d317ae976d45b5c2 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Wed, 17 Feb 2021 17:10:35 +0100 Subject: [PATCH] Finishing the WlaDx label's parser --- CMakeLists.txt | 2 + sources/Debugger/CPU/CPUDebug.cpp | 7 +- sources/Debugger/CPU/SymbolLoaders/WlaDx.cpp | 72 +++++++++++++++++--- sources/Debugger/CPU/SymbolLoaders/WlaDx.hpp | 19 +++++- sources/Utility/Utility.cpp | 2 + sources/Utility/Utility.hpp | 13 ++-- 6 files changed, 94 insertions(+), 21 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e576844..034550a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,6 +7,8 @@ project(ComSquare) # show compilation warnings add_compile_options(-W -Wall -Wextra -Wshadow) +include_directories(sources) + # make unit tests add_executable(unit_tests tests/CPU/testAddressingMode.cpp diff --git a/sources/Debugger/CPU/CPUDebug.cpp b/sources/Debugger/CPU/CPUDebug.cpp index cd8cb22..61e848c 100644 --- a/sources/Debugger/CPU/CPUDebug.cpp +++ b/sources/Debugger/CPU/CPUDebug.cpp @@ -3,8 +3,9 @@ // #include "CPUDebug.hpp" -#include "../../Utility/Utility.hpp" -#include "../../Exceptions/InvalidOpcode.hpp" +#include "Utility/Utility.hpp" +#include "Exceptions/InvalidOpcode.hpp" +#include "SymbolLoaders/WlaDx.hpp" #include #include #include @@ -316,7 +317,7 @@ namespace ComSquare::Debugger std::ifstream sym(symbolPath); if (sym) { - std::vector