Claude
Claude

Reputation: 117

gdbserver not passing all environment variables to debugged process

Looking at /proc/pid/environ for both gdbserver and the debugged process I see that not all variables are passed to the debugged process. Some are missing. Is this a bug? Or normal?

The debugged process has not yet jumped to main; gdbserver is waiting for gdb but already created the process. So it is not my code that removes variables (I am not doing this anyway).

Upvotes: 0

Views: 91

Answers (0)

Related Questions