From b1761b8eac5777c09723bbc8cd31cc05d8ec35ae Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Tue, 6 Dec 2022 15:27:42 -0600 Subject: Implement breakpoints --- tb/top/conspiracion.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tb/top') diff --git a/tb/top/conspiracion.cpp b/tb/top/conspiracion.cpp index 15da2ea..96fd57f 100644 --- a/tb/top/conspiracion.cpp +++ b/tb/top/conspiracion.cpp @@ -379,6 +379,11 @@ int main(int argc, char **argv) { tick(); tick(); + + if(top.breakpoint) + { + top.halt = 1; + } }; if(!no_tty) @@ -481,7 +486,7 @@ int main(int argc, char **argv) const char *cmd = std::strtok(line, " "); if(!std::strcmp(cmd, "continue")) { - top.halt = false; + top.halt = 0; break; } else if(!std::strcmp(cmd, "dump-mem")) { -- cgit v1.2.3