Control: notfixed -1 4.9.0-3
Control: reopen -1

Sorry, I forgot to include a demo in my report.  I really do have the
latest sid version of libstdc++6 installed, and this *still* happens:

naesten@hydrogen:~/hacking% sudo apt-get install libstdc++6/sid
Reading package lists... Done
Building dependency tree
Reading state information... Done
libstdc++6 is already the newest version.
Selected version '4.9.0-3' (Debian:unstable [i386]) for 'libstdc++6'
0 upgraded, 0 newly installed, 0 to remove and 1167 not upgraded.
naesten@hydrogen:~/hacking% cat hello++.cc
#include <string>
#include <iostream>

// We do things in a roundabout way as a test of GDB's watchpoints.
std::string greeting[1];

main() {
    greeting[0] = "Hello, World!";

    std::cout << greeting[0] << "\n";
}
naesten@hydrogen:~/hacking% g++ hello++.cc -o hello++
naesten@hydrogen:~/hacking% gdb ./hello++
GNU gdb (Debian 7.7-1) 7.7
Copyright (C) 2014 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 "i486-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./hello++...(no debugging symbols found)...done.
(gdb) start
Temporary breakpoint 1 at 0x8048800
Starting program: /home/naesten/hacking/hello++
Traceback (most recent call last):
  File 
"/usr/share/gdb/auto-load/usr/lib/i386-linux-gnu/libstdc++.so.6.0.20-gdb.py", 
line 59, in <module>
    from libstdcxx.v6.printers import register_libstdcxx_printers
  File 
"/usr/lib/i386-linux-gnu/../../share/gcc-4.9/python/libstdcxx/v6/printers.py", 
line 392
    raise ValueError, "Unsupported implementation for %s" % str(node.type)
                    ^
SyntaxError: invalid syntax

Temporary breakpoint 1, 0x08048800 in main ()
(gdb)


Also, I was under the impression that the usual way of doing this was to
make the Python code compatible with *both* Python 2 and Python 3, which
could be done without having a gdb linked against python3 in the
archive, no?  (Like <http://patchwork.ozlabs.org/patch/287368/> tried to
do; whatever happened to that?)


-- 
To UNSUBSCRIBE, email to debian-gcc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/87ha4p7o3d....@naesten.mooo.com

Reply via email to