code_junkie

Is there a way to change another process's environment variables?

Nov 11th, 2011
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.09 KB | None | 0 0
  1. (gdb) attach process_id
  2.  
  3. (gdb) call putenv ("env_var_name=env_var_value")
  4.  
  5. (gdb) detach
Add Comment
Please, Sign In to add comment