How to make a serial port debugger???:?
I need a serial port debugger, because Bochs is not enough, because sometimes things work on Bochs and on some PCs but in some PCs it doesn’t work, so I need a way to debug these PCs (And also printing messages is not enough for all cases).
So how I do such a debugger???
I think to do something like this:
To have the serial port driver on your OS, and when it gets a request from another PC, it can do single stepping or it can send it's registers value, etc.
But does any one have experience in developing such a debugger, or knows any good article on this subject, it can help me a lot.
(Thanks a lot for any help)
How to make a serial port debugger???
- JackScott
- Member
- Posts: 1036
- Joined: Thu Dec 21, 2006 3:03 am
- Location: Hobart, Australia
- Mastodon: https://aus.social/@jackscottau
- Matrix: @JackScottAU:matrix.org
- GitHub: https://github.com/JackScottAU
- Contact:
I must admit I don't know a lot about remote debugging, but if you want to use GDB then the following link might be useful:
http://developer.apple.com/documentatio ... db_18.html
The section 'Implementing a remote stub' is probably the most relevant. If I'm completely off in what you want, feel free to ignore me.
Note: First result on google for 'GDB Debugger Serial Port'.
http://developer.apple.com/documentatio ... db_18.html
The section 'Implementing a remote stub' is probably the most relevant. If I'm completely off in what you want, feel free to ignore me.
Note: First result on google for 'GDB Debugger Serial Port'.
- samueldotj
- Member
- Posts: 32
- Joined: Mon Nov 13, 2006 12:24 am
Re: How to make a serial port debugger???
Recently I added code for GDB remote serial debugging in my OS. So if you get any problem there I can help you.
Also I tried to create a document for that....
http://www.samueldotj.com/Articles/Kern ... ugging.pdf
Sam
Also I tried to create a document for that....
http://www.samueldotj.com/Articles/Kern ... ugging.pdf
Sam
keller wrote:How to make a serial port debugger???:?
I need a serial port debugger, because Bochs is not enough, because sometimes things work on Bochs and on some PCs but in some PCs it doesn’t work, so I need a way to debug these PCs (And also printing messages is not enough for all cases).
So how I do such a debugger???
I think to do something like this:
To have the serial port driver on your OS, and when it gets a request from another PC, it can do single stepping or it can send it's registers value, etc.
But does any one have experience in developing such a debugger, or knows any good article on this subject, it can help me a lot.
(Thanks a lot for any help)