Hi! a question about processes

This is a discussion on Hi! a question about processes within the Linux Programming forums, part of the Platform Specific Boards category; I'd like to read another process's whole memory, with my own program on either windows or linux. I thought i ...

  1. #1
    Registered User
    Join Date
    Nov 2007
    Posts
    2

    Hi! a question about processes

    I'd like to read another process's whole memory, with my own program on either windows or linux.
    I thought i could use fork, since i get the process id of the forked process and then, to make the forked process do execv with the application i want to read it's process. Could that work somehow?

    I'll be very grateful for every direction

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,592
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    Nov 2007
    Posts
    2

    Thanks :)

    I'll check that out

  4. #4
    Registered User
    Join Date
    Oct 2007
    Posts
    32
    cat /proc/<pid>maps
    will get you your process mappings
    Then you can use gdb's command dump to copy all/any of the mappings to the file.

    Valery

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 34
    Last Post: 05-27-2009, 12:26 PM
  2. another do while question
    By kbpsu in forum C++ Programming
    Replies: 3
    Last Post: 03-23-2009, 12:14 PM
  3. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 09:47 PM
  4. Computer Processes.... Which can be stopped?
    By Sevrin in forum Tech Board
    Replies: 3
    Last Post: 06-08-2003, 08:13 PM
  5. opengl DC question
    By SAMSAM in forum Game Programming
    Replies: 6
    Last Post: 02-26-2003, 08:22 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21