This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/19335] Environement variable in debugged program different than the one displayed by "show env"
- From: "palves at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Sun, 06 Dec 2015 13:04:16 +0000
- Subject: [Bug gdb/19335] Environement variable in debugged program different than the one displayed by "show env"
- Auto-submitted: auto-generated
- References: <bug-19335-4717 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=19335
Pedro Alves <palves at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |palves at redhat dot com
--- Comment #1 from Pedro Alves <palves at redhat dot com> ---
GDB actually execs the shell to run the program and your shell's init script
(e.g., ~/.bashrc, if you're using bash) is setting DCE_PATH back again.
Please see this:
https://sourceware.org/gdb/onlinedocs/gdb/Starting.html
particularly the part about "set startup-with-shell".
and here:
https://sourceware.org/gdb/onlinedocs/gdb/Environment.html
particularly the part about "set environment".
--
You are receiving this mail because:
You are on the CC list for the bug.