In article <[EMAIL PROTECTED]>
"Mark Kettenis <[EMAIL PROTECTED]>" writes:
> Date: Tue, 06 Jun 2000 09:37:17 +0900
> From: Susukita Ryutaro <[EMAIL PROTECTED]>
>
> So why doesn't 'show env A' on gdb print the environment variable A?
>
> ~/.tcshrc:
>
> setenv A
>
> > unsetenv A
> > gdb
> (gdb) show env A
> Environment variable "A" not defined.
>
> It's not in the environment GDB sees (since you did an `unsetenv A').
> When running your program, GDB will start a shell, which processes
> your ~/.tcshrc and does the `setenv A' that makes A show up in your
> program's environment.
I understood the behavior of GDB. Thanks.
-----------------------------------------
SUSUKITA Ryutaro
The Institute of Physics and Chemistry(RIKEN)
Computational Science Division