- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Display a Memory Buffer
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
тАО07-11-2012 09:31 AM
тАО07-11-2012 09:31 AM
If I know the location of a memory buffer (in HP-UX 11.00), how can I display the memory contents. I would prefer to display a number of memory locations if possibel. Are ther any tools, scripts, etc. to allow me to view memory at specific locations?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2012 11:54 AM
тАО07-11-2012 11:54 AM
Re: Display a Memory Buffer
Are you talking about in a debugger for a user application using gdb?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2012 02:41 PM
тАО07-11-2012 02:41 PM
Re: Display a Memory Buffer
No I'm not talking about GDB. I wish I had an object code debugger like OllyDbg for PARISC, but alas I don't. All I want to be able to do is point to a memory address and then read one to 256 words of memory -- much like one would see with a hex editor -- but not for a file, but for memory locations. Is that clearer? I hope I'm saying it right!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2012 03:13 PM
тАО07-11-2012 03:13 PM
Re: Display a Memory Buffer
>I want to be able to do is point to a memory address and then read one to 256 words of memory
Again, are you talking about a user process or the kernel?
gdb's x command can dump memory of a user process. For the kernel, you need to use adb.
- Tags:
- gdb
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2012 06:32 AM
тАО07-12-2012 06:32 AM
SolutionIn Unix, "everything is a file".
With /dev/mem and /dev/kmem, you can access the main memory if you are root or a member of the "sys" group. Just open the device, seek to the location you want and read. /dev/mem gives access to physical memory, and /dev/kmem to kernel virtual memory.
However, the big challenge will be knowing the right address (which translates into file position when reading the /dev/(k)mem device file). Any memory addresses you might get from the debug output of an application will normally refer to the virtual address space of that particular process: a mapping operation is required to find the corresponding address in the kernel virtual address space, and another mapping operation to find the corresponding physical address.
But if you're debugging hardware that is located in a known physical memory address and/or can read the kernel data structures to find the necessary information to translate the addresses, more power to you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2012 11:27 AM
тАО07-12-2012 11:27 AM
Re: Display a Memory Buffer
Thanks Matti and also Dennis Handly -- points to both of you. I will try the easiest first, but I doubt it will work since I am trying to look at locations populated by kernel system calls. This leads me to believe I will have to use ADB (do not know if I have it) or try your method Matti. Thanks to both of you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-12-2012 01:01 PM
тАО07-12-2012 01:01 PM
Re: Display a Memory Buffer
>This leads me to believe I will have to use adb (do not know if I have it)
It's in /usr/bin/adb. Something like:
# adb /stand/vmunix /dev/kmem
- Tags:
- adb