reading process memory

Tofik Suleymanov tofik at oxygen.az
Thu Jun 8 11:00:55 UTC 2006


David Nugent wrote:
> Tofik Suleymanov wrote:
>> Thank you for brief and altogether extensive explanation of the 
>> case.The thing i wanted to do is to read let's say portions of memory 
>> where .bss and .data block of a running program reside.
>>
>> is that possible ?
> Yes. Debuggers offer this functionality, for example.
>
> man 2 ptrace
>
>
Everything is pretty clear from ptrace(2) manpage but where do i get 
addr argument ?

The addr argument specifies the address (in the
                   traced process's virtual address space) at which the read
                   is to be done.  This address does not have to meet any
                   alignment constraints.


?

Sincerely,
Tofik Suleymanov



More information about the freebsd-stable mailing list