Re: "path" does not seem to work correctly

Daniel Jacobowitz
2007-07-17T10:54:04Z

On Tue, Jul 17, 2007 at 03:46:19AM +0000, Mandar Mitra wrote:
> But when I run "gdb smart", or "file smart" inside gdb, it still picks
> up the optimized executable from diropt/bin.

I believe that's what is supposed to happen:

`path DIRECTORY'
Add DIRECTORY to the front of the `PATH' environment variable
(the
search path for executables) that will be passed to your program.
The value of `PATH' used by GDB does not change.

--
Daniel Jacobowitz
CodeSourcery