- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- OpenVMS Alpha Debug64 - Examining char buffer as a...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2005 07:00 AM
тАО05-12-2005 07:00 AM
int main()
{
char buffer[10];
strcpy(buffer, "123456789");
return 0;
}
Using OpenVMS Alpha DEBUG Version V7.1-06R if I examine buffer, I get this output:
DBG> ex buffer
DEBUGTEST\main\buffer[0:9]
[0]: 49
[1]: 50
[2]: 51
[3]: 52
[4]: 53
[5]: 54
[6]: 55
[7]: 56
[8]: 57
[9]: 0
DBG>
Using OpenVMS Alpha Debug64 Version V7.3-200 I get:
DBG> ex buffer
DEBUGTEST\main\buffer: "123456789"
DBG>
I would like to know how I can output buffer as an array like the old version did. I thought "ex buffer[0:9]" may work, but I still get "123456789". Any suggestions?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2005 08:00 AM
тАО05-12-2005 08:00 AM
Re: OpenVMS Alpha Debug64 - Examining char buffer as array
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2005 08:22 AM
тАО05-12-2005 08:22 AM
Re: OpenVMS Alpha Debug64 - Examining char buffer as array
DBG> ex /byte buffer
DEBUGTEST\main\buffer: 49
DBG>
neither does this
DBG> ex /byte buffer[0:9]
DEBUGTEST\main\buffer: 49
DBG>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2005 04:33 PM
тАО05-12-2005 04:33 PM
SolutionI think I'd argue that the behaviour of displaying a string is a big improvement!
The program usage is most likely as a string, so that's how DEBUG should display it.
To display as an array use:
DBG> EXAMINE/BYTE buffer[0]:buffer[9]
or, to see individual characters:
DBG> EXAMINE/ASCII buffer[0]:buffer[9]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2005 01:01 AM
тАО05-13-2005 01:01 AM
Re: OpenVMS Alpha Debug64 - Examining char buffer as array
Thanks, that is exactly what I was looking for. I agree with you about the new behavior being an improvement, but I still find it necessary to display each byte in some cases.
Thanks again,
Alex