diff options
author | Andrew Waterman <andrew@sifive.com> | 2021-05-07 16:13:56 -0700 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2021-05-07 16:13:56 -0700 |
commit | 4f1e33558559831d178f7cb73e6c3b21276ef650 (patch) | |
tree | 0b47889f8c4c2c5c2fe22a574cd6eb0f4dc074c0 /pk/handlers.c | |
parent | e8d15a489fa76612707ff9e99feb0fb36acc9f14 (diff) | |
download | pk-4f1e33558559831d178f7cb73e6c3b21276ef650.zip pk-4f1e33558559831d178f7cb73e6c3b21276ef650.tar.gz pk-4f1e33558559831d178f7cb73e6c3b21276ef650.tar.bz2 |
pk: make breakpoints fatal
Resolves #216
Diffstat (limited to 'pk/handlers.c')
-rw-r--r-- | pk/handlers.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pk/handlers.c b/pk/handlers.c index 7216713..4b4abaf 100644 --- a/pk/handlers.c +++ b/pk/handlers.c @@ -32,8 +32,7 @@ static void handle_illegal_instruction(trapframe_t* tf) static void handle_breakpoint(trapframe_t* tf) { dump_tf(tf); - printk("Breakpoint!\n"); - tf->epc += 4; + panic("Breakpoint!"); } static void handle_misaligned_fetch(trapframe_t* tf) |