Set up the compiler to ptrace the runtime (#107)

* set up the compiler to ptrace the runtime

* clang format

* move debugger state to a separate Debugger class

* support registers and break and continue

* documentation and fix windows

* make listener part of compiler, not a separate library

* implement memory read and write

* fix for windows
This commit is contained in:
water111
2020-10-31 14:07:43 -04:00
committed by GitHub
parent a45d180f2c
commit 0451a06d76
34 changed files with 1215 additions and 110 deletions
+3 -2
View File
@@ -48,7 +48,8 @@ void CompilerTestRunner::run_test(const std::string& test_category,
const std::vector<std::string>& expected,
MatchParam<int> truncate) {
fprintf(stderr, "Testing %s\n", test_file.c_str());
auto result = c->run_test("test/goalc/source_generated/" + test_category + "/" + test_file);
auto result =
c->run_test_from_file("test/goalc/source_generated/" + test_category + "/" + test_file);
if (!truncate.is_wildcard) {
for (auto& x : result) {
x = x.substr(0, truncate.value);
@@ -85,7 +86,7 @@ void CompilerTestRunner::run_test(const std::string& test_category,
void CompilerTestRunner::run_always_pass(const std::string& test_category,
const std::string& test_file) {
c->run_test("test/goalc/source_generated/" + test_category + "/" + test_file);
c->run_test_from_file("test/goalc/source_generated/" + test_category + "/" + test_file);
tests.push_back({{}, {}, test_file, true});
}