We are running students on assembler on windows and some intel macs. gdb is failing under msys2 when using layout (TUI). I was able to get it working on the CMD window, but it still dies if:
gdb myexe
layout src
b main
r
program crashes. Sometimes the window is locked
It works if we first run in command line mode:
gdb myexe
b main
r
then
layout src
or
layout asm
layout reg
this is disconcerting and awful. We can't rerun anything, always have to terminate the debugger and start over.
On MacOSX Monteray 12.0.1 (Intel MacBook Pro 2019) we have similar problems. We installed gdb 12.1
gdb will not run by itself, must be run with sudo?
We realize that on the mac, the preferred platform is lldb, but we don't seem to have equivalent ability to step through assembler. We can see the assembler, but not the registers. and this is a class in low-level coding involving assembler. is there any way to either get gdb working on mac, or an alternative we can use to let students walk through their code.
gdb myexe