diff options
| author | 2019-04-24 11:03:58 -0400 | |
|---|---|---|
| committer | 2019-04-24 11:03:58 -0400 | |
| commit | 4d9d7b5600ab615d68f671df5f8bc6c9fe4a5a09 (patch) | |
| tree | fe63c3525b2e14f12b4492f87d3e875c4dcec0e4 /frontends/calculator/CEdev/examples/debugging/src | |
| parent | 6152e965868f3e010c79d91ce3da0036758fda4d (diff) | |
| download | cetris-4d9d7b5600ab615d68f671df5f8bc6c9fe4a5a09.tar.gz cetris-4d9d7b5600ab615d68f671df5f8bc6c9fe4a5a09.tar.bz2 cetris-4d9d7b5600ab615d68f671df5f8bc6c9fe4a5a09.zip | |
add pause to curses, remove unfinished calculator frontend
Diffstat (limited to 'frontends/calculator/CEdev/examples/debugging/src')
| -rw-r--r-- | frontends/calculator/CEdev/examples/debugging/src/main.c | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/frontends/calculator/CEdev/examples/debugging/src/main.c b/frontends/calculator/CEdev/examples/debugging/src/main.c deleted file mode 100644 index 0972efd..0000000 --- a/frontends/calculator/CEdev/examples/debugging/src/main.c +++ /dev/null @@ -1,47 +0,0 @@ -#include <stdbool.h>
-#include <stddef.h>
-#include <stdint.h>
-#include <tice.h>
-
-#include <assert.h>
-#include <debug.h>
-
-/*
- * Even though debug.h has prototypes for Debugger, SetWriteWatchpoint, SetWatchpoint, RemoveWatchpoint, RemoveAllWatchpoints, RemoveAllBreakpoints...
- * you have to use the dbg_ prefix as shown here:
- */
-
-void main(void) {
- /* Set the intial value of some variables */
- int dbg_test_var_1 = 10;
- uint8_t dbg_test_var_2 = 3;
-
- /* Print a simple debugging string */
- dbg_sprintf(dbgout, "This is the start of a CEmu debugging test\n");
-
- /* You can enter the debugger manually */
- dbg_Debugger();
-
- /* Set a watchpoint that will break anytime we write/change this variable */
- dbg_SetWriteWatchpoint(&dbg_test_var_1, sizeof dbg_test_var_1);
-
- /* Set a non breaking watchpoint just so we can see what is in this variable at any given time */
- dbg_SetWatchpoint(&dbg_test_var_2, sizeof dbg_test_var_2);
-
- /* Now, let's write to the variable to see what happens (Go to the 'Watchpoints' tab in CEmu to view the status) */
- dbg_test_var_1 = 5;
-
- /* Remove the watchpoint that we had set */
- dbg_RemoveWatchpoint(&dbg_test_var_1);
- dbg_RemoveWatchpoint(&dbg_test_var_2);
-
- /* We can also use those */
- dbg_RemoveAllWatchpoints();
- dbg_RemoveAllBreakpoints();
-
- /* Set this value to zero */
- dbg_test_var_2 = 0;
-
- /* Fail this assertion */
- assert(dbg_test_var_2);
-}
|