cirosantilli / linux-kernel-module-cheat

The perfect emulation setup to study and develop the Linux kernel v5.4.3, kernel modules, QEMU, gem5 and x86_64, ARMv7 and ARMv8 userland and baremetal assembly, ANSI C, C++ and POSIX. GDB step debug and KGDB just work. Powered by Buildroot and crosstool-NG. Highly automated. Thoroughly documented. Automated tests. "Tested" in an Ubuntu 24.04 host.
https://cirosantilli.com/linux-kernel-module-cheat
GNU General Public License v3.0
4.21k stars 605 forks source link

gem5 aarch64 gdb step debug fails with "Remote 'g' packet reply is too long" somewhere after LKMC v3.0 #65

Closed cirosantilli closed 5 years ago

cirosantilli commented 5 years ago

At LKMC v3.0 it was working after it was fixed in gem5 previously:

./run -aA -eg -b baremetal/hello.c --wait-gdb
./run-gdb -aA -eg -b baremetal/hello.c main

but later at LKMC 9f8303e5795898a2fb06e97257660e5df6af3340 it wasn't anymore:

./run -aA -eg -b baremetal/hello.c --gdb

Edit: bisected down to gem5 c4cc3145cd1eeed236b5cd3f7b2424bc0761878e SVE merge.

cirosantilli commented 5 years ago

Fixed at https://gem5-review.googlesource.com/c/public/gem5/+/20468 gem5 36a575071cd460255ca67ec5bdd6862d9c164919 and merged into LKMC fa877e19d31203744aecbb252a4f0207dc7491dd