This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug libstdc++/51967] FAIL: libstdc++-prettyprinters/48362.cc


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51967

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-01-23 15:39:52 UTC ---
do the printers ever work, outside the testsuite?

i.e. if you build this:
#include <tuple>
int main() {
  std::tuple<int, int> t;
  return std::tuple_size<decltype(t)>::value;
}

then debug and run

  break 4
  run
  print t

you should see

$1 = std::tuple containing = {
  [1] = 0,
  [2] = 0
}


does it make any difference if you put this in ~/.gdbinit (with the correct
path to the installed gcc)?

python
 import sys
 sys.path.insert(0, '/path/to/gcc/share/gcc-4.7.0/python')
 from libstdcxx.v6.printers import register_libstdcxx_printers
 register_libstdcxx_printers (None)
end


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