Public bug reported: As mentioned in Bug #1166304, because of use of python 3 for building GDB, a lot of python 2 plugins seems to not be supported anymore by default??
Yesterday I was trying to debug STL stuff and stumbled upon the same errors as referred in #1166304. Today when trying to debug Go I stumbled upon: GNU gdb (GDB) 7.6.1-ubuntu This GDB was configured as "x86_64-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Lendo símbolos de /home/francisco/.go/src/playground/sample...concluído. File "/usr/local/src/go/src/pkg/runtime/runtime-gdb.py", line 358 print s, ptr['goid'], "%8s" % sts[long((ptr['status']))], blk.function ^ SyntaxError: invalid syntax (gdb) q So, it seems with the default GDB I can't do several things because of adoption of python 3 (http://alexgaynor.net/2013/dec/30/about-python-3)? Can I switch it to use python 2 so it's usable again, or should I just build my own gdb as I'm about to do? ** Affects: gdb (Ubuntu) Importance: Undecided Status: New ** Tags: saucy ** Description changed: As mentioned in Bug #1166304, because of use of python 3 for building GDB, a lot of python 2 plugins seems to not be supported anymore by default?? Yesterday I was trying to debug STL stuff and stumbled upon the same errors as referred in #1166304. Today when trying to debug Go I stumbled upon: GNU gdb (GDB) 7.6.1-ubuntu This GDB was configured as "x86_64-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Lendo símbolos de /home/francisco/.go/src/playground/sample...concluído. - File "/usr/local/src/go/src/pkg/runtime/runtime-gdb.py", line 358 - print s, ptr['goid'], "%8s" % sts[long((ptr['status']))], blk.function - ^ + File "/usr/local/src/go/src/pkg/runtime/runtime-gdb.py", line 358 + print s, ptr['goid'], "%8s" % sts[long((ptr['status']))], blk.function + ^ SyntaxError: invalid syntax (gdb) q So, it seems with the default GDB I can't do several things because of adoption of python 3 (http://alexgaynor.net/2013/dec/30/about-python-3)? Can I switch it to use python 2 so it's usable again, or should I just build my own gdb I'm about to do? ** Description changed: As mentioned in Bug #1166304, because of use of python 3 for building GDB, a lot of python 2 plugins seems to not be supported anymore by default?? Yesterday I was trying to debug STL stuff and stumbled upon the same errors as referred in #1166304. Today when trying to debug Go I stumbled upon: GNU gdb (GDB) 7.6.1-ubuntu This GDB was configured as "x86_64-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Lendo símbolos de /home/francisco/.go/src/playground/sample...concluído. File "/usr/local/src/go/src/pkg/runtime/runtime-gdb.py", line 358 print s, ptr['goid'], "%8s" % sts[long((ptr['status']))], blk.function ^ SyntaxError: invalid syntax (gdb) q So, it seems with the default GDB I can't do several things because of adoption of python 3 (http://alexgaynor.net/2013/dec/30/about-python-3)? Can I switch it to use python 2 so it's usable again, or should I just - build my own gdb I'm about to do? + build my own gdb as I'm about to do? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1265217 Title: Can't use GDB 7.6.1-ubuntu with libstdc++ pretty printers, nor use it for debbuging Go To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gdb/+bug/1265217/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs