From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13204 invoked by alias); 14 Jan 2012 12:52:53 -0000 Received: (qmail 13195 invoked by uid 22791); 14 Jan 2012 12:52:52 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_DB,TW_SM X-Spam-Check-By: sourceware.org Received: from mail-iy0-f169.google.com (HELO mail-iy0-f169.google.com) (209.85.210.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 14 Jan 2012 12:52:39 +0000 Received: by iafj26 with SMTP id j26so6907173iaf.0 for ; Sat, 14 Jan 2012 04:52:38 -0800 (PST) Received: by 10.50.160.196 with SMTP id xm4mr4279948igb.12.1326545558937; Sat, 14 Jan 2012 04:52:38 -0800 (PST) Received: from [192.168.1.103] ([218.109.114.173]) by mx.google.com with ESMTPS id l35sm40814406ibj.0.2012.01.14.04.52.35 (version=SSLv3 cipher=OTHER); Sat, 14 Jan 2012 04:52:38 -0800 (PST) Message-ID: <4F117BA7.6090205@gmail.com> Date: Sat, 14 Jan 2012 13:53:00 -0000 From: asmwarrior User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: gdb-patches@sourceware.org Subject: Re: Building GDB 7.3.92 with MinGW 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> In-Reply-To: <83ipkfk3hg.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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/msg00513.txt.bz2 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. 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? > >> b2, you can continue type: >> info pretty-printer >> Then, gdb will report all the pretty-printers installed. If you encountered some error message like: >> Undefined info command: "pretty-printer". Try "help info". >> This means gdb's own python script does not loaded correctly when gdb startup, this is because gdb can't find the path: >> c:/path_to_mingw/share/gdb/python/gdb > What does it mean if "info pretty-printer" doesn't display anything, > but doesn't show any error messages, either? If you don't have any pretty-printers installed, but gdb's own python script loaded correctly. you will have nothing returned from gdb, like: (gdb) info pretty-printer [ENTER HERE] (gdb) asmwarrior ollydbg from codeblocks' forum