Thread: Hi! a question about processes

  1. #1
    Registered User
    Join Date
    Nov 2007

    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 int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    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.

  3. #3
    Registered User
    Join Date
    Nov 2007

    Thanks :)

    I'll check that out

  4. #4
    Registered User
    Join Date
    Oct 2007
    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.


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
    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, 09:22 PM