[Bug libstdc++/68735] FAIL: libstdc++-prettyprinters/libfundts.cc print ab
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68735 --- Comment #3 from Jonathan Wakely --- Those Python exceptions come from GDB, but I'm not sure why.
[Bug libstdc++/68735] FAIL: libstdc++-prettyprinters/libfundts.cc print ab
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68735 John David Anglin changed: What|Removed |Added Last reconfirmed|2016-11-01 00:00:00 |2017-12-17 --- Comment #2 from John David Anglin --- Similar fails: FAIL: libstdc++-prettyprinters/cxx17.cc print ab FAIL: libstdc++-prettyprinters/cxx17.cc print ai FAIL: libstdc++-prettyprinters/cxx17.cc print ap FAIL: libstdc++-prettyprinters/cxx17.cc print as FAIL: libstdc++-prettyprinters/cxx17.cc print as2 FAIL: libstdc++-prettyprinters/cxx17.cc print am FAIL: libstdc++-prettyprinters/libfundts.cc print ab FAIL: libstdc++-prettyprinters/libfundts.cc print ai FAIL: libstdc++-prettyprinters/libfundts.cc print ap FAIL: libstdc++-prettyprinters/libfundts.cc print as FAIL: libstdc++-prettyprinters/libfundts.cc print as2 FAIL: libstdc++-prettyprinters/libfundts.cc print am FAIL: libstdc++-prettyprinters/cxx17.cc print ab FAIL: libstdc++-prettyprinters/cxx17.cc print ai FAIL: libstdc++-prettyprinters/cxx17.cc print ap FAIL: libstdc++-prettyprinters/cxx17.cc print as FAIL: libstdc++-prettyprinters/cxx17.cc print as2 FAIL: libstdc++-prettyprinters/cxx17.cc print am FAIL: libstdc++-prettyprinters/libfundts.cc print ab FAIL: libstdc++-prettyprinters/libfundts.cc print ai FAIL: libstdc++-prettyprinters/libfundts.cc print ap FAIL: libstdc++-prettyprinters/libfundts.cc print as FAIL: libstdc++-prettyprinters/libfundts.cc print as2 FAIL: libstdc++-prettyprinters/libfundts.cc print am
[Bug libstdc++/68735] FAIL: libstdc++-prettyprinters/libfundts.cc print ab
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68735 --- Comment #1 from John David Anglin --- *** Bug 69332 has been marked as a duplicate of this bug. ***
[Bug libstdc++/68735] FAIL: libstdc++-prettyprinters/libfundts.cc print ab
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68735 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Last reconfirmed|2017-12-17 00:00:00 |2020-12-02 --- Comment #4 from Jonathan Wakely --- The exceptions come from this line: func = gdb.block_for_pc(int(mgr.cast(gdb.lookup_type('intptr_t' This casts a function pointer to intptr_t and then tries to find the gdb.Block corresponding to that address. The GDB docs say that gdb.block_for_pc will return None, but it seems to throw instead. The same thing happens on powerpc64 linux (but not powerpc64le).
[Bug libstdc++/68735] FAIL: libstdc++-prettyprinters/libfundts.cc print ab
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68735 --- Comment #5 from Jonathan Wakely --- Ah, I think the problem is that Python 2 has a 42-bit int and so casting a big endian pointer to int loses half the bits.
[Bug libstdc++/68735] FAIL: libstdc++-prettyprinters/libfundts.cc print ab
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68735 Jonathan Wakely changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org Status|NEW |ASSIGNED
[Bug libstdc++/68735] FAIL: libstdc++-prettyprinters/libfundts.cc print ab
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68735 --- Comment #6 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #5) > Ah, I think the problem is that Python 2 has a 42-bit int 32-bit of course. But there's also something else going on. I have a patch.
[Bug libstdc++/68735] FAIL: libstdc++-prettyprinters/libfundts.cc print ab
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68735 --- Comment #7 from dave.anglin at bell dot net --- Currently, we also have the following two additional fails: FAIL: libstdc++-prettyprinters/91997.cc print a FAIL: libstdc++-prettyprinters/91997.cc print a
[Bug libstdc++/68735] FAIL: libstdc++-prettyprinters/libfundts.cc print ab
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68735 --- Comment #8 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:dc2b372ed1b1e9af6db45051cff95478c7616807 commit r11-5683-gdc2b372ed1b1e9af6db45051cff95478c7616807 Author: Jonathan Wakely Date: Wed Dec 2 21:39:08 2020 + libstdc++: Fix std::any pretty printer [PR 68735] This fixes errors seen on powerpc64 (big endian only) due to the printers for std::any and std::experimental::any being unable to find the manager function. libstdc++-v3/ChangeLog: PR libstdc++/65480 PR libstdc++/68735 * python/libstdcxx/v6/printers.py (function_pointer_to_name): New helper function to get the name of a function from its address. (StdExpAnyPrinter.__init__): Use it.
[Bug libstdc++/68735] FAIL: libstdc++-prettyprinters/libfundts.cc print ab
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68735 Jonathan Wakely changed: What|Removed |Added Target Milestone|--- |11.0 --- Comment #9 from Jonathan Wakely --- (In reply to dave.anglin from comment #7) > Currently, we also have the following two additional fails: > > FAIL: libstdc++-prettyprinters/91997.cc print a > FAIL: libstdc++-prettyprinters/91997.cc print a Yes it's the same printer for the same type. If the commit above fixed it for libfundts.cc it should fix it for those too. It's possible the problem here is different from the PR 65480 problem for powerpc64 though, so I'll wait to see how your next tests go.
[Bug libstdc++/68735] FAIL: libstdc++-prettyprinters/libfundts.cc print ab
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68735 --- Comment #10 from CVS Commits --- The releases/gcc-10 branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:4fd49da23bf579b84940bd96bf942bd99cfa187a commit r10-9249-g4fd49da23bf579b84940bd96bf942bd99cfa187a Author: Jonathan Wakely Date: Wed Dec 2 21:39:08 2020 + libstdc++: Fix std::any pretty printer [PR 68735] This fixes errors seen on powerpc64 (big endian only) due to the printers for std::any and std::experimental::any being unable to find the manager function. libstdc++-v3/ChangeLog: PR libstdc++/65480 PR libstdc++/68735 * python/libstdcxx/v6/printers.py (function_pointer_to_name): New helper function to get the name of a function from its address. (StdExpAnyPrinter.__init__): Use it. (cherry picked from commit dc2b372ed1b1e9af6db45051cff95478c7616807)
[Bug libstdc++/68735] FAIL: libstdc++-prettyprinters/libfundts.cc print ab
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68735 --- Comment #11 from CVS Commits --- The releases/gcc-8 branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:2204b4121fa9cddb89dd52a8a0754a1ae0666efb commit r8-10720-g2204b4121fa9cddb89dd52a8a0754a1ae0666efb Author: Jonathan Wakely Date: Wed Dec 2 21:39:08 2020 + libstdc++: Fix std::any pretty printer [PR 68735] This fixes errors seen on powerpc64 (big endian only) due to the printers for std::any and std::experimental::any being unable to find the manager function. libstdc++-v3/ChangeLog: PR libstdc++/65480 PR libstdc++/68735 * python/libstdcxx/v6/printers.py (function_pointer_to_name): New helper function to get the name of a function from its address. (StdExpAnyPrinter.__init__): Use it. (cherry picked from commit dc2b372ed1b1e9af6db45051cff95478c7616807)
[Bug libstdc++/68735] FAIL: libstdc++-prettyprinters/libfundts.cc print ab
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68735 Jonathan Wakely changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED|RESOLVED Target Milestone|11.0|8.5 --- Comment #12 from Jonathan Wakely --- Fixed for 8.5 and 9.4 and 10.3 The gcc-9 commit didn't show up here but was r9-9172