|
There are syntax differences in a STRDBG session of a C or C++ program.
On the 'eval' statement of your session, try the following statement:
EVAL **dataarea:c 30
This will work if dataarea is a pointer.
The ** dereferences the pointer to get at the memory it points to.
The :c tells is to display the memory as a character. (Try :x for hex as an alternative) Tip: Characters in C/C++ are null terminated. They will end with x'00', so the :x way of viewing the data lets you see the null terminators.
The 30 is just the number of characters in memory that you want to display. Nothing magical to 30.
If dataarea is a pointer to an array, try the following syntax:
EVAL *dataarea[1]:c 50
The [1] indicates that I want to view the 2nd array element (arrays start with zero in C/C++).
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.