ref: d6a7223e17d669c99ca280037f1a3df5974d4c90
parent: 2d7610a38eff20df2e243d797767135f8f62e019
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Fri Jul 18 19:27:15 EDT 2025
kernel: restore original context for noted(NDFLT) When debugging, we want to see the original context, not the one of the note handler calling noted(NDFLT0).
--- a/sys/src/9/port/sysproc.c
+++ b/sys/src/9/port/sysproc.c
@@ -928,6 +928,7 @@
up->lastnote->flag = NDebug;
/* fall through */
case NDFLT:
+ noted(up->dbgreg, nureg, arg); /* for debugging */
if(up->lastnote->flag == NDebug)
pprint("suicide: %s\n", up->lastnote->msg);
pexit(up->lastnote->msg, up->lastnote->flag!=NDebug);
--
⑨