From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19371 invoked by alias); 30 Aug 2010 23:22:08 -0000 Received: (qmail 19362 invoked by uid 22791); 30 Aug 2010 23:22:07 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mail-iw0-f169.google.com (HELO mail-iw0-f169.google.com) (209.85.214.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 30 Aug 2010 23:22:01 +0000 Received: by iwn33 with SMTP id 33so7770102iwn.0 for ; Mon, 30 Aug 2010 16:22:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.14.140 with SMTP id g12mr5581990iba.84.1283210520065; Mon, 30 Aug 2010 16:22:00 -0700 (PDT) Received: by 10.231.159.209 with HTTP; Mon, 30 Aug 2010 16:21:59 -0700 (PDT) In-Reply-To: <20100830230035.GA5311@caradoc.them.org> References: <20100830230035.GA5311@caradoc.them.org> Date: Mon, 30 Aug 2010 23:22:00 -0000 Message-ID: Subject: Re: A question about data-directory From: Srinath Avadhanula To: Srinath Avadhanula , gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: 2010-08/txt/msg00170.txt.bz2 Hi Daniel, On Mon, Aug 30, 2010 at 7:00 PM, Daniel Jacobowitz w= rote: > On Mon, Aug 30, 2010 at 06:46:49PM -0400, Srinath Avadhanula wrote: >> I was expecting the output from the auto-load script to say 'getting >> here' before getting back to the prompt. If I place test-gdb.py in the >> same directory as the executable (i.e. at /tmp/test/test-gdb.py) then >> I do get a line saying 'getting here'. > > IIUC, that's what's supposed to happen right now. =A0The 'python' > directory in datadir is added to the Python search path, but gdb.py > files are searched for next to the object file. > That seems to flatly contradict what is mentioned in the doc: ----------%<------------ Finally, if this file does not exist, then gdb will look for a file named data-directory/python/auto-load/real-name, where data-directory is gdb's data directory (available via show data-directory, see Data Files), and real-name is the object file's real name, as described above. ----------%<------------ It does say that "gdb will look for a file named ..." rather than it being only available on Python's search path. Is the doc wrong/out-dated? Regards, Srinath