From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9590 invoked by alias); 17 Jul 2007 10:54:04 -0000 Received: (qmail 9582 invoked by uid 22791); 17 Jul 2007 10:54:03 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 17 Jul 2007 10:54:01 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 9D2C6982C3; Tue, 17 Jul 2007 10:54:00 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 8001E982A3; Tue, 17 Jul 2007 10:54:00 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.67) (envelope-from ) id 1IAkgo-0006c9-Gw; Tue, 17 Jul 2007 06:53:58 -0400 Date: Tue, 17 Jul 2007 12:43:00 -0000 From: Daniel Jacobowitz To: mandar.mitra@gmail.com Cc: gdb@sourceware.org Subject: Re: "path" does not seem to work correctly Message-ID: <20070717105358.GA25318@caradoc.them.org> Mail-Followup-To: mandar.mitra@gmail.com, gdb@sourceware.org References: <64dc1fc50707162046g14063577l37bac2fa8b47fc2d@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <64dc1fc50707162046g14063577l37bac2fa8b47fc2d@mail.gmail.com> User-Agent: Mutt/1.5.15 (2007-04-09) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-07/txt/msg00134.txt.bz2 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