Is there a way to do a DD command on memory so it dumps to a file?
Announcement
Collapse
No announcement yet.
DD comand (dump Memory to a file)
Collapse
X
-
Originally posted by Mark A Nelson View PostIs there a way to do a DD command on memory so it dumps to a file?
Or does DD imply some sort of formatting of the output? In which case it will run to more than two statements!
-
Specifically, what memory are you trying to dump? In the old DOS days, you could access and dump anything, but with Windows, particularly with Windows NT/2K/XP and Vista. your application is limited in terms of what areas of memory it can access. Further, your application is unlikely to be allocated the same memory range each time it gets loaded. If you are thinking of data in your program space, then there should be no problem writing the data to a file, but a raw dump lacks appeal since it does not preserve structure or context.
Comment
-
Donald, raw dumps are what you see if you review the 'GPF' report you get an opportunity to send to Microsoft. (Clearly done only when you have no paint flaking or grass growing to watch ).
They can be useful when tracking data exceptions (eg, trying to add 62& and "dog"). except those don't happen with the PB compiler.
Those data exceptions CAN happen when writing in COBOL, which uses some datatypes which can be made nvalid, eg BCD data containing digits other than '0' thru '9' in a nibble other than the sign nibble.
Curiously enough, you know what causes that in COBOL? Careless use of POINTER variables or other direct memory access functions (Sounds familiar, huh?)
MCMMichael Mattias
Tal Systems (retired)
Port Washington WI USA
[email protected]
http://www.talsystems.com
Comment
-
If you want a formatted dump whiich makes no assumptions about structure (like DD), you could use the code I just posted in the Source Code forum if you just want it on the display, or modify it to output to printer (and post the results!)
A nifty programmer could also allow the data to be modified and rewritten, which could have its uses in testing and deugging.
Comment
Comment