GDB+Qemu调试Linux代码
Posted sinferwu
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了GDB+Qemu调试Linux代码相关的知识,希望对你有一定的参考价值。
https://blog.csdn.net/baidu_34045013/article/details/78882607
https://biscuitos.github.io/blog/BiscuitOS_Catalogue/
https://biscuitos.github.io/blog/Linux-0.11-Usermanual/
http://bbs.chinaunix.net/thread-4262483-1-1.html
http://bbs.chinaunix.net/thread-4241956-1-1.html
http://bbs.chinaunix.net/thread-4242224-1-1.html
http://bbs.chinaunix.net/thread-4257971-1-1.html
建议升级一个版本,学习linux 0.12,因为linux 0.12有虚拟内存的支持,不支持虚拟内存的OS始终觉得缺点什么。。。
linux 0.11和linux 0.12已经具备了linux内核的“神”与“形”,是非常好的学习资料,欠缺之处有可能是锁,同步等方面的知识。
谢谢你的建议,不过我研究完 0.11 之后,要通过补丁的方式升级到 0.12 和后续版本,这样也可以知道 Linux 的发展
https://mirrors.edge.kernel.org/pub/linux/kernel/
Bing搜索 搜到的 biscuitos bbs.chinaunix.net/thread-4262483-1-1.html
TODO
多篇
https://www.cnblogs.com/pengdonglin137/p/5023342.html
initramfs 讲解
https://howardlau.me/programming/debugging-linux-kernel-with-vscode-qemu.html
https://www.cnblogs.com/wipan/p/9264979.html
https://www.cnblogs.com/wipan/p/9269505.html
https://blog.csdn.net/sinat_22597285/article/details/53783221
https://howardlau.me/programming/debugging-linux-kernel-with-vscode-qemu.html
QEMU网络
http://wiki.sylixos.com/index.php/Linux%E7%8E%AF%E5%A2%83%E5%BC%80%E5%8F%91%E6%8C%87%E5%8D%97
https://www.cnblogs.com/pengdonglin137/p/11517407.html
https://www.cnblogs.com/pengdonglin137/p/5023340.html
https://wiki.archlinux.org/index.php/Network_bridge_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)
https://wiki.archlinux.org/index.php/Network_bridge
https://wiki.archlinux.org/index.php/QEMU#Tap_networking_with_QEMU
Eclipse 下载 版本
https://www.eclipse.org/downloads/packages/release
https://blog.csdn.net/baidu_34045013/article/details/78882607
调试Linux-0.11 时
qemu-system-x86_64 需要换成
qemu-system-i386
https://www.jianshu.com/p/ab4fa7f12f06
set architecture i8086 //设置成i8086模式,用来调试16位实模式代码 未测试
https://www.cnblogs.com/zzb-Dream-90Time/p/9227050.html
http://www.kgdb.info/using_kgdb_base_qemu/
KGDB + QEMU
qemu-system-x86_64 -append nokaslr
需要append nokaslr enable了kernel address space layout randomation,这样内核地址不就不一致了,禁掉就好了
The nokasrl
Linux command line parameter disables KASRL.
This has been needed since v4.12, when KASLR was turned on by default
http://www.oldlinux.org/Book-Lite/
http://www.oldlinux.org/download/clk011c-3.0.pdf
linux官方版本
http://draconux.free.fr/os_dev/linux0.01_download.html
https://blog.csdn.net/chengwenyang/article/details/77417830
https://blog.csdn.net/asdfdypro/article/details/44680813
https://www.jianshu.com/p/ab4fa7f12f06
http://www.aiuxian.com/article/p-1164108.html
http://tinylab.org/cs630-qemu-lab/
https://tinylab.gitbooks.io/shellbook/
https://www.cnblogs.com/tedyyan/archive/2012/01/30/2428063.html
Bochs IA-32 Emulator Project
https://blog.csdn.net/chengwenyang/article/details/23547133
以上是关于GDB+Qemu调试Linux代码的主要内容,如果未能解决你的问题,请参考以下文章