Subject: Re: Linux program = dos debug ? Date: Tue, Nov 10, 1998 at 12:10:43PM -0500
In reply to:[EMAIL PROTECTED] Quoting [EMAIL PROTECTED]([EMAIL PROTECTED]): > > On Sun, 8 Nov 1998 [EMAIL PROTECTED] wrote: > > > I was asked a question today that I am not able to find the answer > > for. What is the linux equivilent of the dos debug program? I looked > > tru the package files and all I can find are program debuggers. Could > > someone point out what I am missing, please. > > Well, as such, there is no such thing. The DOS debug program lets you > read from and write to arbitrary locations in memory. You can do this in > DOS, a real-mode OS, but it's not really sensible in a protected-mode OS > like Linux. > > If you *really* want to do something like this, try reading and writing > to /dev/kcore, which is a 'dummy' file that represents RAM. You can only > do this as root. Frankly, I'd never even consider doing this, but if you > absolutely *have* to poke around in memory, go ahead... > Thanks Ray, finally an answer other then gdb, ddd, etc. I guess I didn't explain the question correctly. Anyway thanks, I'll let him know about /proc/kcore. The purpose of all this is that he is trying to hook up some external devices to his printer port, ie stepper motors, and he wants to watch what is happening with the port address (0x3f8 etc). He doesn't want to use dos anymore and is trying to find out if linux will do what he wants. I answered all his questions _except_ the debug replacement. Really appreciate your reply! Wayne > Sincerely, > > Ray Ingles (248) 377-7735 [EMAIL PROTECTED] > > "Any technology distinguishable from magic is insufficiently advanced." > - Anonymous' restatement of Clarke > > -- User n.: A programmer who will believe anything you tell him. _______________________________________________________ Wayne T. Topa <[EMAIL PROTECTED]>