forked from voidccc/linux0.11
-
Notifications
You must be signed in to change notification settings - Fork 1
hjjdebug/linux0.11
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
# hjjdebug # https://blog.csdn.net/hejinjing_tom_com # <[email protected]> # 2019年 08月 05日 星期一 11:51:27 CST # enviroment: Ubuntu14.04, gcc4.8.4(默认), bochs2.4.6(自编译带gdb 调试功能), qemu(默认) # 2022年 09月 06日 星期二 19:22:57 CST # enviroment: Ubuntu20.04, gcc9.4.0, bochs2.4.6(自编译带gdb 调试功能), qemu(默认) ---------------------------------------- run linux-0.11 ---------------------------------------- $ make run 或者 $ make bochs-run ---------------------------------------- debug linux-0.11 ---------------------------------------- $ make debug 或者 $ make bochs-debug 另一窗口: $ gdb $ source 1.gdb enjoy it! 无论是bochs, 还是qemu, 模拟环境运行起来都有些问题, 不是很好,凑合着能帮助理解就行了, 都达不到理想的运行效果. 不知道是不是模拟机的问题. 虽然不能在init下断下来,但可以在sys_setup 系统服务函数断下来,也可以调试了. 从而可以在其它c 函数下调试了(大部分的c 函数都能断, 可能仅少部分不行!)
About
linux 0.11 tested on Ubuntu 14.04(Bochs 2.4.6)
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- C 79.0%
- Assembly 12.8%
- Makefile 6.9%
- Shell 1.3%