Can't use GDB 7.6.1-ubuntu with libstdc++ pretty printers, nor use it for debbuging Go

Bug #1265217 reported by Francisco Lopes
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gdb (Ubuntu)
Fix Released
Undecided
Unassigned

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?

Tags: saucy
Francisco Lopes (oblita)
description: updated
description: updated
Revision history for this message
Diogo Matsubara (matsubara) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gdb (Ubuntu):
status: New → Confirmed
Revision history for this message
Matthias Klose (doko) wrote :

apparently fixed for 14.10

Changed in gdb (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.