Wednesday 7 March 2012

Debug Your Operating System(Eva Os)


tty2 screenshot



//tty1
qemu -s -S -kernel /home/vishal/evaos/working/22/kernel -gdb tcp::50022 -vnc :0






//tty2
gdb
(gdb) target remote 127.0.0.1:50022
Remote debugging using 127.0.0.1:50022
0x0000fff0 in ?? ()
(gdb) file /home/vishal/evaos/working/22/kernel
A program is being debugged already.
Are you sure you want to change the file? (y or n) y
Reading symbols from /home/vishal/evaos/working/22/kernel...(no debugging symbols found)...done.
(gdb) break eva
Note: breakpoint 1 also set at pc 0x100032.
Breakpoint 2 at 0x100032




//tty3
vncviewer 127.0.0.1

So that's how you can debug your own operating system .I known it gets really frustrating if some error occur and you dont known its location or how to remove it .I hope this will help you out to get out of such situations.



//please feel free to comment //

0 comments:

Post a Comment