kit

kit
git clone https://git.ryansepassi.com/git/kit.git
Log | Files | Refs | README

commit 5688a976a82b233ad9ae752869d4772f36f23809
parent f8832785ff35d8f461594f58a894dc1d234411d0
Author: Ryan Sepassi <rsepassi@gmail.com>
Date:   Tue,  9 Jun 2026 15:20:18 -0700

test/dbg: refresh stale goldens after prologue growth (+0x20)

Diffstat:
Mtest/dbg/cases/toy-file-line-step/expected | 6+++---
Mtest/dbg/cases/toy-local-inspection/expected | 2+-
Mtest/dbg/cases/toy-step-finish/expected | 6+++---
Mtest/dbg/cases/toy-trap-backtrace/expected | 18+++++++++---------
Mtest/dbg/cases/toy-trap-stop/expected | 4++--
5 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/test/dbg/cases/toy-file-line-step/expected b/test/dbg/cases/toy-file-line-step/expected @@ -1,18 +1,18 @@ kit dbg — 'h' for help, 'q' to quit Breakpoint 1 at 0xADDR (@CASE@/main.toy:2) -Breakpoint 1 (@CASE@/main.toy:2) hit at 0xADDR <main+0x60> at @CASE@/main.toy:2:16 +Breakpoint 1 (@CASE@/main.toy:2) hit at 0xADDR <main+0x80> at @CASE@/main.toy:2:16 1 fn main(): i32 { 2 > let x: i64 = 10; 3 let y: i64 = x + 32; 4 return y as i32; 5 } -Single-step complete at 0xADDR <main+0x64> at @CASE@/main.toy:2:16 +Single-step complete at 0xADDR <main+0x84> at @CASE@/main.toy:2:16 1 fn main(): i32 { 2 > let x: i64 = 10; 3 let y: i64 = x + 32; 4 return y as i32; 5 } -Next complete at 0xADDR <main+0x68> at @CASE@/main.toy:3:20 +Next complete at 0xADDR <main+0x88> at @CASE@/main.toy:3:20 1 fn main(): i32 { 2 let x: i64 = 10; 3 > let y: i64 = x + 32; diff --git a/test/dbg/cases/toy-local-inspection/expected b/test/dbg/cases/toy-local-inspection/expected @@ -1,6 +1,6 @@ kit dbg — 'h' for help, 'q' to quit Breakpoint 1 at 0xADDR (@CASE@/main.toy:3) -Breakpoint 1 (@CASE@/main.toy:3) hit at 0xADDR <helper+0x74> at @CASE@/main.toy:3:10 +Breakpoint 1 (@CASE@/main.toy:3) hit at 0xADDR <helper+0x94> at @CASE@/main.toy:3:10 1 fn helper(v: i64): i64 { 2 let n: i64 = v + 2; 3 > return n; diff --git a/test/dbg/cases/toy-step-finish/expected b/test/dbg/cases/toy-step-finish/expected @@ -1,6 +1,6 @@ kit dbg — 'h' for help, 'q' to quit Breakpoint 1 at 0xADDR (@CASE@/main.toy:8) -Breakpoint 1 (@CASE@/main.toy:8) hit at 0xADDR <main+0x68> at @CASE@/main.toy:8:25 +Breakpoint 1 (@CASE@/main.toy:8) hit at 0xADDR <main+0x88> at @CASE@/main.toy:8:25 3 return y; 4 } 5 @@ -9,7 +9,7 @@ Breakpoint 1 (@CASE@/main.toy:8) hit at 0xADDR <main+0x68> at @CASE@/main.toy:8: 8 > let out: i64 = helper(base); 9 return out as i32; 10 } -Step complete at 0xADDR <helper+0x64> at @CASE@/main.toy:2:20 +Step complete at 0xADDR <helper+0x84> at @CASE@/main.toy:2:20 1 fn helper(v: i64): i64 { 2 > let y: i64 = v + 1; 3 return y; @@ -17,7 +17,7 @@ Step complete at 0xADDR <helper+0x64> at @CASE@/main.toy:2:20 5 6 fn main(): i32 { 7 let base: i64 = 41; -Finish complete at 0xADDR <main+0x78> at @CASE@/main.toy:8:25 +Finish complete at 0xADDR <main+0x98> at @CASE@/main.toy:8:25 3 return y; 4 } 5 diff --git a/test/dbg/cases/toy-trap-backtrace/expected b/test/dbg/cases/toy-trap-backtrace/expected @@ -1,11 +1,11 @@ kit dbg — 'h' for help, 'q' to quit -Stopped on trap signal 5 at 0xADDR <bt_leaf+0x60> at <dbg-jit-1.toy>:1:35 -#0 0xADDR <bt_leaf+0x60> in _bt_leaf () at <dbg-jit-1.toy>:1:35 -#1 0xADDR <bt_mid+0x64> in _bt_mid () at <dbg-jit-1.toy>:1:102 -#2 0xADDR <bt_root+0x64> in _bt_root () at <dbg-jit-1.toy>:1:155 -#3 0xADDR <main+0x64> in _main () at <dbg-jit-1.toy>:1:191 +Stopped on trap signal 5 at 0xADDR <bt_leaf+0x80> at <dbg-jit-1.toy>:1:35 +#0 0xADDR <bt_leaf+0x80> in _bt_leaf () at <dbg-jit-1.toy>:1:35 +#1 0xADDR <bt_mid+0x84> in _bt_mid () at <dbg-jit-1.toy>:1:102 +#2 0xADDR <bt_root+0x84> in _bt_root () at <dbg-jit-1.toy>:1:155 +#3 0xADDR <main+0x84> in _main () at <dbg-jit-1.toy>:1:191 1 > fn @[.noinline] bt_leaf(): i32 { @trap(); return 0 as i32; } fn @[.noinline] bt_mid(): i32 { return bt_leaf(); } fn @[.noinline] bt_root(): i32 { return bt_mid(); } fn main(): i32 { return bt_root(); } -#0 0xADDR <bt_leaf+0x60> in _bt_leaf () at <dbg-jit-1.toy>:1:35 -#1 0xADDR <bt_mid+0x64> in _bt_mid () at <dbg-jit-1.toy>:1:102 -#2 0xADDR <bt_root+0x64> in _bt_root () at <dbg-jit-1.toy>:1:155 -#3 0xADDR <main+0x64> in _main () at <dbg-jit-1.toy>:1:191 +#0 0xADDR <bt_leaf+0x80> in _bt_leaf () at <dbg-jit-1.toy>:1:35 +#1 0xADDR <bt_mid+0x84> in _bt_mid () at <dbg-jit-1.toy>:1:102 +#2 0xADDR <bt_root+0x84> in _bt_root () at <dbg-jit-1.toy>:1:155 +#3 0xADDR <main+0x84> in _main () at <dbg-jit-1.toy>:1:191 diff --git a/test/dbg/cases/toy-trap-stop/expected b/test/dbg/cases/toy-trap-stop/expected @@ -1,4 +1,4 @@ kit dbg — 'h' for help, 'q' to quit -Stopped on trap signal 5 at 0xADDR <main+0x60> at <dbg-jit-1.toy>:1:19 -#0 0xADDR <main+0x60> in _main () at <dbg-jit-1.toy>:1:19 +Stopped on trap signal 5 at 0xADDR <main+0x80> at <dbg-jit-1.toy>:1:19 +#0 0xADDR <main+0x80> in _main () at <dbg-jit-1.toy>:1:19 1 > fn main(): i32 { @trap(); return 0 as i32; }