fn main() {
panic('panic')
}
compiled with
./spawnlang -g --backtrace full --run test.sp
outputs error
panic: panic
thread "main" (604503):
libbacktrace error: no debug info in ELF executable
libbacktrace error: no debug info in ELF executable
libbacktrace error: no debug info in ELF executable
libbacktrace error: no debug info in ELF executable
libbacktrace error: no debug info in ELF executable
note: looks like debug info is missing, try to recompile with `-g` flag
on both compilers (GCC and Clang). On ARM Mac this works as expected. Seems debug info is present in the executable as well
╰─λ objdump -h out | grep '\.debug'
28 .debug_aranges 00000090 0000000000000000 0000000000000000 0003c533 2**0
29 .debug_info 0001ad85 0000000000000000 0000000000000000 0003c5c3 2**0
30 .debug_abbrev 00001027 0000000000000000 0000000000000000 00057348 2**0
31 .debug_line 0000f7c2 0000000000000000 0000000000000000 0005836f 2**0
32 .debug_str 0000b6c5 0000000000000000 0000000000000000 00067b31 2**0
33 .debug_line_str 0000070b 0000000000000000 0000000000000000 000731f6 2**0
34 .debug_rnglists 000002ad 0000000000000000 0000000000000000 00073901 2**0
compiled with
outputs error
on both compilers (GCC and Clang). On ARM Mac this works as expected. Seems debug info is present in the executable as well