Page 1 of 1

How to make a serial port debugger???

Posted: Sun Jan 14, 2007 2:27 am
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:

Posted: Sun Jan 14, 2007 2:31 am
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'. :)

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

Posted: Wed Jan 17, 2007 4:52 am
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: