This is the mail archive of the archer@sourceware.org mailing list for the Archer project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: FYI: removing the libstdc++ pretty-printers


>>>>> "Vladimir" == Vladimir Prus <vladimir@codesourcery.com> writes:

Tom> They can check out just the libstdc++/python directory from gcc svn.
Tom> Then they just need to work out the code to load the printers...

Vladimir> This sounds scary. Suppose I've checked out that directory
Vladimir> to /tmp/python.  What do I have to do to make gdb use that?

I think something like:

cd /tmp
svn co svn://gcc.gnu.org/svn/gcc/trunk/libstdc++-v3/python

cat >> ~/.gdbinit << END
python
import sys
sys.path.insert(0, '/tmp/python')
from libstdcxx.v6.printers import register_libstdcxx_printers
register_libstdcxx_printers (None)
END


Yes, a bit scary.

IIUC the scenario here is a user who is stuck with an older GCC but
who upgrades GDB and wants to use the pretty-printers.  I think users
like that can handle this.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]