From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9811 invoked by alias); 27 Mar 2013 21:54:18 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 9469 invoked by uid 89); 27 Mar 2013 21:54:09 -0000 X-Spam-SWARE-Status: No, score=-3.6 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL autolearn=ham version=3.3.1 Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Wed, 27 Mar 2013 21:54:05 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id C02E22E45D; Wed, 27 Mar 2013 17:54:03 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 4S6gHD8Oyy4o; Wed, 27 Mar 2013 17:54:03 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 78C432EACD; Wed, 27 Mar 2013 17:54:03 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id CA904C0330; Wed, 27 Mar 2013 14:54:01 -0700 (PDT) Date: Thu, 28 Mar 2013 12:00:00 -0000 From: Joel Brobecker To: Doug Evans Cc: Tom Tromey , gdb-patches@sourceware.org Subject: Re: [RFA, RFA 7.6] Improve help for, e.g., running gdb in build tree. Message-ID: <20130327215401.GE4758@adacore.com> References: <87y5d8elic.fsf@fleche.redhat.com> <20819.16279.468828.807108@ruffy2.mtv.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20819.16279.468828.807108@ruffy2.mtv.corp.google.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2013-03/txt/msg01049.txt.bz2 > 2013-03-27 Doug Evans > > * python/python.c (finish_python_initialization): Provide suggestion > for how to tell gdb to find its python files. FWIW, OK for me as well (commenting on the second version). > > Index: python.c > =================================================================== > RCS file: /cvs/src/src/gdb/python/python.c,v > retrieving revision 1.111 > diff -u -p -r1.111 python.c > --- python.c 12 Mar 2013 17:39:45 -0000 1.111 > +++ python.c 27 Mar 2013 18:48:40 -0000 > @@ -1711,9 +1711,13 @@ finish_python_initialization (void) > if (gdb_python_module == NULL) > { > gdbpy_print_stack (); > - warning (_("Could not load the Python gdb module from `%s'."), > + /* This is passed in one call to warning so that blank lines aren't > + inserted between each line of text. */ > + warning (_("\n" > + "Could not load the Python gdb module from `%s'.\n" > + "Limited Python support is available from the _gdb module.\n" > + "Suggest passing --data-directory=/path/to/gdb/data-directory.\n"), > gdb_pythondir); > - warning (_("Limited Python support is available from the _gdb module.")); > do_cleanups (cleanup); > return; > } -- Joel