From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28730 invoked by alias); 14 Jan 2012 13:53:47 -0000 Received: (qmail 28716 invoked by uid 22791); 14 Jan 2012 13:53:46 -0000 X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL,TW_SM X-Spam-Check-By: sourceware.org Received: from mtaout20.012.net.il (HELO mtaout20.012.net.il) (80.179.55.166) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 14 Jan 2012 13:53:32 +0000 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LXS00C00JW99C00@a-mtaout20.012.net.il> for gdb-patches@sourceware.org; Sat, 14 Jan 2012 15:53:03 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.124.136.230]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LXS00ACYJWDKEY0@a-mtaout20.012.net.il>; Sat, 14 Jan 2012 15:53:02 +0200 (IST) Date: Sat, 14 Jan 2012 18:15:00 -0000 From: Eli Zaretskii Subject: Re: Building GDB 7.3.92 with MinGW In-reply-to: <4F117B33.8080906@gmail.com> To: asmwarrior Cc: brobecker@adacore.com, dje@google.com, gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <834nvyjsqj.fsf@gnu.org> References: <83hb03e9sx.fsf@gnu.org> <838vlfe0k9.fsf@gnu.org> <4F0CD948.8080909@gmail.com> <4F0E266C.8080208@gmail.com> <20120112064721.GN31383@adacore.com> <20120112115355.GO31383@adacore.com> <838vlclv4r.fsf@gnu.org> <4F103C20.8070204@gmail.com> <83ipkfk3hg.fsf@gnu.org> <4F117B33.8080906@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/msg00514.txt.bz2 > Date: Sat, 14 Jan 2012 20:55:15 +0800 > From: asmwarrior > CC: brobecker@adacore.com, dje@google.com, gdb-patches@sourceware.org > > On 2012-1-13 23:48, Eli Zaretskii wrote: > >> Date: Fri, 13 Jan 2012 22:13:52 +0800 > >> From: asmwarrior > >> CC: Joel Brobecker, dje@google.com, > >> gdb-patches@sourceware.org > >> > >> a, suppose you have gdb install or copied in some folder: > >> c:/path_to_mingw/bin/gdb.exe > >> c:/path_to_mingw/share/gdb/python/gdb (this folder contains some python script like:printing.py....) > >> > >> b, run the gdb.exe. > >> b1, you can type: > >> python print gdb.PYTHONDIR > >> It should return the windows path: c:/path_to_mingw/share/gdb/python > > Works for me. > I test it again today, and it does not works on my XP. What does it mean "does not work", in your case? > The official MinGW-gdb is build with such configure option(like my personal build): > CFLAGS="-O2 -fno-omit-frame-pointer -mtune=i686" \ > ../gdb-7.3.1/configure \ > --program-suffix="-python27" \ > --prefix=/mingw \ > --host=mingw32 \ > --build=mingw32 \ > --target=mingw32 \ > --with-python=/python/python \ > --with-expat > > When you put the MinGW in some different folders in the driver E: > like e:/mymingw1 and e:/mymingw2 > > When you run gdb and enter: python print gdb.PYTHONDIR, it will always return: > e:\mingw\share\gdb/python > You see, I have no such path here in dirver e. > I'm not sure how you test your gdb, did you just put you MinGW under e:/MinGW? Can you try some other places? Are you saying that the problem happens only if the directory configured as --prefix does not exist at all on the machine where you run GDB?