[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sheflug] Debug equivalent
Ahaaa!! You have a problem then.
(You'll find this with debug on Win NT too)....
because the memory is abstracted, you can't see the 'real' memory in the
machine. If write a simple C program to access memory, say, at 0xD800, you
may expect to see device memory from an interface card or some other such.
You won't.
All the real memory is handled by the kernel. You and I can't just be
looking inside it at will. When you look at the memory in a Linux box, you
see what the kernel wants you to see.. the current process and thats it.
I am unaware of any software for viewing memory directly (although I could
be wrong). Perhaps /dev/mem as root may do the trick? I don't know.
But there you are. Linux isn't like the world of DOS. It's protected against
people (like me) who like to poke around where they aren't wanted ;-)
Craig
-----Original Message-----
From: Steve Tickle <s.tickle [at] quarndon.co.uk>
To: Sheflug <sheflug [at] vuw.ac.nz>
Date: Wednesday, June 28, 2000 3:32 PM
Subject: Re: [Sheflug] Debug equivalent
>At 15:10 28/06/2000 +0100, Alex Hudson wrote:
>
>>On Wed, 28 Jun 2000, Steve Tickle wrote:
>>
>> > Can someone please point me in the direct of a Linux equivalent of the
old
>> > M$-DOS `debug' application?
>>
>>I suppose you'd like edlin too? ;))
>>
>>To be honest, I don't think there is a version. You can get close with a
>>combination of hexdump, nasm, gdb, etc. I don't really think you want to
>>go back to debug, though. How many people here wrote assembler programs in
>>debug? I did. I fully remembering writing programs that would corrupt the
>>BX register, and would often lose them when w'ing, or making them vastly
>>larger than they were supposed to be. Ahh, those were the days....
>>usually, BX was my counter, which was often at zero, and I'd end up
>>zeroing the file on write.
>
>Actually, I don't want it for programming or anything like that at all, I'd
>just like to be able to look at the MAC addresses of a few NICs by looking
>at the memory space they reside in... simple as that really.
>
>So what do you recommend?
>
>
>Steve
>
>
>---------------------------------------------------------------------
>Sheffield Linux User's Group - http://www.sheflug.co.uk
>To unsubscribe from this list send mail to
>- <sheflug-request [at] vuw.ac.nz> - with the word
> "unsubscribe" in the body of the message.
>
> GNU the choice of a complete generation.
>
>
>
---------------------------------------------------------------------
Sheffield Linux User's Group - http://www.sheflug.co.uk
To unsubscribe from this list send mail to
- <sheflug-request [at] vuw.ac.nz> - with the word
"unsubscribe" in the body of the message.
GNU the choice of a complete generation.