Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我只是在学习如何修改linux内核。我正在使用 gdb 远程调试内核,但我的断点(b console_init,b start_kernel)不起作用。现在我想尝试在 ext4 文件系统挂载时设置断点。谁能告诉我在代码中的哪里设置断点?
我可以建议跑步吗
grep -rn mount /usr/src/linux/fs/ext4/
甚至
grep -rn 'mount.*(' /usr/src/linux/fs/ext4/
并检查结果?如果你打算使用 Ext4 代码,你应该非常熟悉它,无论如何......