How to make a serial port debugger???

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Jim
Member
Member
Posts: 27
Joined: Sun Nov 05, 2006 3:46 am

How to make a serial port debugger???

Post by Jim »

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??? :?:
:wink: :wink: :wink:
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.
:lol: :lol:
(Thanks a lot for any help)
:lol: :lol:
User avatar
JackScott
Member
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:

Post by JackScott »

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'. :)
User avatar
samueldotj
Member
Member
Posts: 32
Joined: Mon Nov 13, 2006 12:24 am

Re: How to make a serial port debugger???

Post by samueldotj »

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
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??? :?:
:wink: :wink: :wink:
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.
:lol: :lol:
(Thanks a lot for any help)
:lol: :lol:
Post Reply