Building GDB 7.3.92 with MinGW

Eli Zaretskii eliz@gnu.org
Fri Jan 13 16:55:00 GMT 2012


> 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.

> 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?



More information about the Gdb-patches mailing list