[Bug 1265217] Re: Can't use GDB 7.6.1-ubuntu with libstdc++ pretty printers, nor use it for debbuging Go

Diogo Matsubara diogo.matsubara at canonical.com
Sat Feb 8 05:22:19 UTC 2014


Go's upstream issue: https://code.google.com/p/go/issues/detail?id=6698

** Bug watch added: Go Issue Tracker #6698
   http://code.google.com/p/go/issues/detail?id=6698

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gdb in 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

Status in “gdb” package in Ubuntu:
  Confirmed

Bug description:
  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?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdb/+bug/1265217/+subscriptions



More information about the foundations-bugs mailing list