Package: gdb
Version: 7.6.2-1.1
Severity: important

Dear Maintainer,

A recent upload of gdb switched to python3 instead of python2.

Even if you really think a python3 gdb is useful, it should not be the
default, e.g. ship a gdb package using python2 and a gdb-python3 package
for people who don't like working software.

Besides the obvious breakage in every pretty-printer ever written (there
are more packages than libstdc++, you know!), it also breaks gdb in strange
ways. For example, after converting my pretty-printers to python3, I get
a python exception when just running 'info pretty-printer'.

(gdb should not be using copy.copy at all here)

(gdb) set python print-stack full
(gdb) info pretty-printer
  objfile /home/ben/conf/bin/tmwa-admin pretty-printers:
  tmwa
Traceback (most recent call last):
  File "/usr/share/gdb/python/gdb/command/pretty_printers.py", line 164, in 
invoke
    object_re, name_re, subname_re)
  File "/usr/share/gdb/python/gdb/command/pretty_printers.py", line 150, in 
invoke1
    self.list_pretty_printers(printer_list, name_re, subname_re)
  File "/usr/share/gdb/python/gdb/command/pretty_printers.py", line 136, in 
list_pretty_printers
    sorted_subprinters = sorted (copy.copy(printer.subprinters),
  File "/usr/lib/python3.3/copy.py", line 105, in copy
    return _reconstruct(x, rv, 0)
  File "/usr/lib/python3.3/copy.py", line 295, in _reconstruct
    y = callable(*args)
  File "/usr/lib/python3.3/copyreg.py", line 88, in __newobj__
    return cls.__new__(cls, *args)
TypeError: object.__new__(dict_values) is not safe, use dict_values.__new__()
Error occurred in Python command: object.__new__(dict_values) is not safe, use 
dict_values.__new__()


-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (600, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.13-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gdb depends on:
ii  gdbserver     7.6.2-1.1
ii  libc6         2.18-5
ii  libexpat1     2.1.0-4
ii  liblzma5      5.1.1alpha+20120614-2
ii  libncurses5   5.9+20140118-1
ii  libpython3.3  3.3.5-1
ii  libreadline6  6.3-6
ii  libtinfo5     5.9+20140118-1
ii  zlib1g        1:1.2.8.dfsg-1

Versions of packages gdb recommends:
ii  libc6-dbg [libc-dbg]  2.18-5

Versions of packages gdb suggests:
ii  gdb-doc  7.6.2-1

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to