[JOS]how to debug user mode program in bochs


1. find the virtual address at the last kernel mode in obj/kernel.asm:
env_pop_tf(&(e->env_tf));
supposed the virtual address is 0xf0102a36
2. vbreak 0x08:0xf0102a36 and debug one by one step and enter the user program
or
directly
vbreak 0x1b:0x00800020

关注微信公众号

注意!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系我们删除。



 
粤ICP备14056181号  © 2014-2020 ITdaan.com