From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22925 invoked by alias); 11 Jan 2012 04:06:02 -0000 Received: (qmail 22909 invoked by uid 22791); 11 Jan 2012 04:06:01 -0000 X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL,TW_SM X-Spam-Check-By: sourceware.org Received: from mtaout22.012.net.il (HELO mtaout22.012.net.il) (80.179.55.172) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 11 Jan 2012 04:05:47 +0000 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LXM00E008E5ED00@a-mtaout22.012.net.il> for gdb-patches@sourceware.org; Wed, 11 Jan 2012 06:05:46 +0200 (IST) Received: from HOME-C4E4A596F7 ([84.228.135.112]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LXM00D7T8PLDF70@a-mtaout22.012.net.il>; Wed, 11 Jan 2012 06:05:46 +0200 (IST) Date: Wed, 11 Jan 2012 04:08:00 -0000 From: Eli Zaretskii Subject: Re: Building GDB 7.3.92 with MinGW In-reply-to: <4F0CD948.8080909@gmail.com> To: asmwarrior Cc: gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <8362gievdu.fsf@gnu.org> References: <83hb03e9sx.fsf@gnu.org> <838vlfe0k9.fsf@gnu.org> <4F0CD948.8080909@gmail.com> X-IsSubscribed: yes 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 X-SW-Source: 2012-01/txt/msg00338.txt.bz2 > Date: Wed, 11 Jan 2012 08:35:20 +0800 > From: asmwarrior > > On 2012-1-11 5:23, Doug Evans wrote: > > For one, remembering to pass -data-directory is a pain. > > This parameter does not work correctly under MinGW in the case that I would like gdb to automatically run the python script when it startup. > > Normally, my gdb is put in MinGW/bin, and the gdb's own python script is under: > MinGW\share\gdb\python\gdb\*.py > > I need to hard-code the code in gdb/main.c to set the data-directory value. (Because gdb is build from MSYS+MinGW, but it run normally on Windows shell without MSYS) Can you explain why the original code doesn't work as intended? And what is MSYS have to do with that? Thanks.