Debugging Kernel and User Application uClinux NEEK BSP
break *main
to
break *start_kernel
5. Issue the command:
#nios2-debug home/uClinux/uClinux-dist/linux
2.6.x/vmlinux.elf
Wait for few seconds and following window will get opened.
Figure 17 : main.C
Now you can debug easily with aid of GUI. You can set the break point, check the
content of registers and see the assembly code also.
When you want to perform kernel debugging then only use the modified script
otherwise use the default script.
40 System Level Solutions