This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/19335] Environement variable in debugged program different than the one displayed by "show env"


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]