public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: asmwarrior <asmwarrior@gmail.com>
To: gdb-patches@sourceware.org
Subject: Re: Building GDB 7.3.92 with MinGW
Date: Sat, 14 Jan 2012 13:53:00 -0000	[thread overview]
Message-ID: <4F117BA7.6090205@gmail.com> (raw)
In-Reply-To: <83ipkfk3hg.fsf@gnu.org>

On 2012-1-13 23:48, Eli Zaretskii wrote:
>> Date: Fri, 13 Jan 2012 22:13:52 +0800
>> From: asmwarrior<asmwarrior@gmail.com>
>> CC: Joel Brobecker<brobecker@adacore.com>,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


  reply	other threads:[~2012-01-14 12:52 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-10 18:46 Eli Zaretskii
2012-01-10 18:59 ` Doug Evans
2012-01-10 20:56   ` Eli Zaretskii
2012-01-13 11:28   ` Eli Zaretskii
2012-01-10 19:25 ` Tom Tromey
2012-01-10 20:55   ` Joseph S. Myers
2012-01-10 20:58   ` Eli Zaretskii
2012-01-10 21:00   ` Eli Zaretskii
2012-01-10 19:31 ` Alfred M. Szmidt
2012-01-10 21:01   ` Eli Zaretskii
2012-01-10 21:26     ` Doug Evans
2012-01-11  0:37       ` asmwarrior
2012-01-11  4:08         ` Eli Zaretskii
2012-01-11  4:54           ` asmwarrior
2012-01-11 17:54         ` Doug Evans
2012-01-12  0:17           ` asmwarrior
2012-01-12  6:47             ` Eli Zaretskii
2012-01-12  8:07               ` Joel Brobecker
2012-01-12 11:54                 ` Eli Zaretskii
2012-01-12 12:35                   ` Joel Brobecker
2012-01-12 16:59                     ` Eli Zaretskii
2012-01-13 14:29                       ` asmwarrior
2012-01-13 16:55                         ` Eli Zaretskii
2012-01-14 13:53                           ` asmwarrior [this message]
     [not found]                           ` <4F117B33.8080906@gmail.com>
2012-01-14 18:15                             ` Eli Zaretskii
2012-01-15  3:33                               ` Pierre Muller
     [not found]                               ` <18546.4176851839$1326580387@news.gmane.org>
2012-01-15  3:54                                 ` asmwarrior
     [not found]                               ` <000001ccd30c$5ce854e0$16b8fea0$%muller@ics-cnrs.unistra.fr>
2012-01-15 13:35                                 ` Eli Zaretskii
2012-01-15 17:01                                   ` Joel Brobecker
2012-01-15 18:55                                     ` Eli Zaretskii
2012-01-15 18:01                                   ` Pierre Muller
     [not found]                                   ` <000301ccd3a7$3db8c460$b92a4d20$%muller@ics-cnrs.unistra.fr>
2012-01-15 18:55                                     ` Eli Zaretskii
2012-01-16  3:08                                       ` Pierre Muller
2012-01-10 21:33     ` Tom Tromey
2012-01-11  1:31       ` asmwarrior
2012-01-11  4:30         ` Eli Zaretskii
2012-01-11  4:30           ` asmwarrior
2012-01-11  3:32 ` Joel Brobecker
2012-01-13 11:06   ` Eli Zaretskii
2012-01-13 12:39     ` Joel Brobecker
2012-01-13 13:56       ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F117BA7.6090205@gmail.com \
    --to=asmwarrior@gmail.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).