Skip to content

Instantly share code, notes, and snippets.

@q66

q66/sh.diff Secret

Created June 3, 2023 21:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save q66/978ca271db9ea32c8641209eb90f2f85 to your computer and use it in GitHub Desktop.
Save q66/978ca271db9ea32c8641209eb90f2f85 to your computer and use it in GitHub Desktop.
--- a/src.freebsd/sh/memalloc.c
+++ b/src.freebsd/sh/memalloc.c
@@ -208,6 +208,7 @@ setstackmark(struct stackmark *mark)
mark->stackp = stackp;
mark->stacknxt = stacknxt;
mark->stacknleft = stacknleft;
+ printf("SETSTACKMARK %p\n", mark);
/* Ensure this block stays in place. */
if (stackp != NULL && stacknxt == SPACE(stackp))
stalloc(1);
@@ -220,6 +221,7 @@ popstackmark(struct stackmark *mark)
struct stack_block *sp;
INTOFF;
+ printf("POPSTACKMARK %p %p\n", mark, stackp);
while (stackp != mark->stackp) {
sp = stackp;
stackp = sp->prev;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment