Skip to content

gdb: upgrade to be python 3 compatible #6698

@LukeMauldin

Description

@LukeMauldin
What steps will reproduce the problem?
If possible, include a link to a program on play.golang.org.
1. Build a Golang program and launch is with GDB.  Using Ubuntu 13.10, GDB 7.6.1. 
Golang version 1.2rc2.  Note, I have go installed in /opt/go and I have a symbolic link
linking /usr/local/go to /opt/go

What is the expected output?
Debugging to work correctly

What do you see instead?
luke@luke-laptop:~/projects/goexternal/src/tf/meetingmessage$ gdb ./meetingmessage 
GNU gdb (GDB) 7.6.1-ubuntu
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>;
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>;...
Reading symbols from
/home/luke/projects/goexternal/src/tf/meetingmessage/meetingmessage...done.
  File "/opt/go/src/pkg/runtime/runtime-gdb.py", line 358
    print s, ptr['goid'], "%8s" % sts[long((ptr['status']))], blk.function
          ^
SyntaxError: invalid syntax
(gdb)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions