1751939 Members
4840 Online
108783 Solutions
New Discussion юеВ

Direct memory writing

 
SOLVED
Go to solution
Alejandro Torrijo
Occasional Advisor

Direct memory writing

Is there any application which permits writing in a process memory area?

Thanks in advance,
Alex
9 REPLIES 9
Dennis Handly
Acclaimed Contributor

Re: Direct memory writing

What memory is that? Are you talking about a debugger that can use ttrace to write to a process space?

Or with shared memory, you can just attached and then just load/store that memory.

The first is slow. The second runs at hardware speeds.
Alejandro Torrijo
Occasional Advisor

Re: Direct memory writing

I am asking about process space. I know that it can be done with "wdb" but I would like to know if it is possible to use another application (supported HP application preferred).
A. Clay Stephenson
Acclaimed Contributor

Re: Direct memory writing

In a word, "no". The "supported" way for a group of processes to alter one another's memory is via shared memory segments. Consider the security and safety issues involved with what you seem to want to do. It would help if you described what you are trying to do and why; it might then be possible to offer better suggestions.

There is no /proc tree so there is no easy access to the memory image of all processes.
If it ain't broke, I can fix that.
Alejandro Torrijo
Occasional Advisor

Re: Direct memory writing

Our client is trying to debug a problematic code segment.
Dennis Handly
Acclaimed Contributor

Re: Direct memory writing

>Our client is trying to debug a problematic code segment.

So what is wrong with using wdb/gdb?
Alejandro Torrijo
Occasional Advisor

Re: Direct memory writing

There is no problem at all. We just wanted to know if is there any other application to do this, but we would tell them to continue using wdb.
Dennis Handly
Acclaimed Contributor
Solution

Re: Direct memory writing

>We just wanted to know if is there any other application to do this

Application other than a debugger??

Basically there is only gdb. You can use wdb, ddd? or eclipse to sit on top of gdb.
Alejandro Torrijo
Occasional Advisor

Re: Direct memory writing

Thank you for your answers.
Dennis Handly
Acclaimed Contributor

Re: Direct memory writing

You haven't assigned any points to this thread. Did you get any useful answers?
Please read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33

You can reopen the thread by:
http://forums1.itrc.hp.com/service/forums/helptips.do?#41