Cannot insert breakpoint 1. Cannot access memory at address 0xffffffff8610ae1b
用硬件断点hbreak而不是软件断点break
4 Troubleshooting
内核编译
遇到FATAL: modpost: vmlinux.o is truncated.
1 2 3 4 5 6 7 8 9 10 11 12
LD vmlinux.o OBJCOPY modules.builtin.modinfo objcopy: warning: vmlinux.o has a corrupt section with a size (3b7bb65e) larger than the file size objcopy: warning: vmlinux.o has a corrupt section with a size (59e797c0) larger than the file size objcopy: warning: vmlinux.o has a corrupt section with a size (20ce7197) larger than the file size objcopy: warning: vmlinux.o has a corrupt section with a size (168af608) larger than the file size GEN modules.builtin GEN .vmlinux.objs MODPOST Module.symvers FATAL: modpost: vmlinux.o is truncated. sechdrs[i].sh_offset=370247648 > sizeof(*hrd)=64 make[2]: *** [scripts/Makefile.modpost:144: Module.symvers] Error 1 make[1]: *** [/root/kernels/linux-6.5-rc3/Makefile:1984: modpost] Error 2