Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* How to load C++ pretty-printers
@ 2019-03-16  8:30 Eli Zaretskii
  2019-03-16 12:41 ` asmwarrior
  0 siblings, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2019-03-16  8:30 UTC (permalink / raw)
  To: gdb

I have a question regarding loading the C++ pretty-printers provided
by GCC.  This might be specific to MS-Windows, not sure.

So I have the C++ pretty-printers installed in
d:/usr/share/gcc-7.3.0/python/libstdcxx/v6.  I start GDB to debug
itself.  The "info pretty-printer" command says:

  (top-gdb) info pretty-printer
  global pretty-printers:
    builtin
      mpx_bound128
    objfile D:\gnu\gdb-8.2\gdb\gdb.exe pretty-printers:
    type_lookup_function

This doesn't seem to mention the GCC-provided C++ pretty-printers.  So
I start the inferior GDB running:

  (top-gdb) start --config

After that, "info pretty-printers" still shows no C++ pretty-printers.
OK, me thinks, this could be because libstdc++ is statically linked
into GDB, so I load the pretty-printers by hand:

  (top-gdb) source d:/usr/share/gcc-7.3.0/python/libstdcxx/v6/printers.py

But "info pretty-printers" command still doesn't show the C++
pretty-printers I just loaded.

What am I missing here?  How does one load and enable the C++
pretty-printers provided with GCC?  Do I need some magic in my
~/.gdbinit file to do that?

TIA


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2019-03-17 17:17 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-16  8:30 How to load C++ pretty-printers Eli Zaretskii
2019-03-16 12:41 ` asmwarrior
2019-03-16 12:58   ` Eli Zaretskii
2019-03-16 13:21     ` asmwarrior
2019-03-16 14:25     ` Simon Marchi
2019-03-16 16:00       ` Eli Zaretskii
2019-03-17  1:47         ` asmwarrior
2019-03-17 11:03           ` Joel Brobecker
2019-03-17 12:39             ` Philippe Waroquiers
2019-03-17 15:31               ` Eli Zaretskii
2019-03-17 17:17                 ` Philippe Waroquiers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox