In linux terminal 1
$ sudo apt-get install qemu-kvm qemu virt-manager virt-viewer
$ git clone git@github.com:mit-pdos/xv6-public.git
$ cd xv6-public
$ make
$ make qemu
$ make qemu-nox-gdb
In linux terminal 2
$ gdb kernel
> target remote localhost:26000
> b exec
> c
> file _cat
> b main
> c
In linux terminal 1
$ cat README
look gdb stoped in breakpoint in terminal 2
https://web.archive.org/web/20190308091152/http://zoo.cs.yale.edu:80/classes/cs422/2011/lec/l2-hw
http://vglab.cse.iitd.ac.in/~sbansal/os/previous_years/2014/lec/l3-hw1.html
https://stackoverflow.com/questions/10534798/debugging-user-code-on-xv6-with-gdb
https://pdos.csail.mit.edu/6.828/2014/xv6/book-rev8.pdf
https://pdos.csail.mit.edu/6.828/2014/xv6/xv6-rev8.pdf
https://pdos.csail.mit.edu/6.828/2014/xv6/
https://www.cs.bham.ac.uk/~exr/lectures/opsys/10_11/lectures/os-dev.pdf
https://github.com/tuhdo/os01
http://skelix.net/
http://www.jamesmolloy.co.uk/tutorial_html/
No comments:
Post a Comment