Is there a way to debug my kernel at source level?
-
- Member
- Posts: 116
- Joined: Thu May 06, 2010 4:34 am
- Libera.chat IRC: peterbjornx
- Location: Leiden, The Netherlands
- Contact:
Is there a way to debug my kernel at source level?
I am working on a OS kernel and i got a nasty bug i cant seem to fix with bochs internal debugger, and of course i cannot use MSVC's built-in debugger, so what can i use for this purpose??
Re: Is there a way to debug my kernel at source level?
You would have to build the debugging into your kernel, AFAIK.
Re: Is there a way to debug my kernel at source level?
Generally under such a situation, I decompile the code, and write out on a piece of paper what is happening according to the op code. Depending on the level of the bug you may have to rely on this technique.
- gravaera
- Member
- Posts: 737
- Joined: Tue Jun 02, 2009 4:35 pm
- Location: Supporting the cause: Use \tabs to indent code. NOT \x20 spaces.
Re: Is there a way to debug my kernel at source level?
You'll never know how amazing and awesome "printf()" and infinite loops are until you try them
17:56 < sortie> Paging is called paging because you need to draw it on pages in your notebook to succeed at it.
Re: Is there a way to debug my kernel at source level?
MDM wrote:Generally under such a situation, I decompile the code, and write out on a piece of paper what is happening according to the op code.
Concur. The only debugging methods you'll ever need.gravaera wrote:You'll never know how amazing and awesome "printf()" and infinite loops are until you try them
If a trainstation is where trains stop, what is a workstation ?
-
- Member
- Posts: 116
- Joined: Thu May 06, 2010 4:34 am
- Libera.chat IRC: peterbjornx
- Location: Leiden, The Netherlands
- Contact:
Re: Is there a way to debug my kernel at source level?
I fixed the bug now, and indeed i just had to make my dprintf's a little more detailed