Debugging g++-3.0 programs
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
[Following up on the comments about g++ version 3.0]
Thank you all for your comments. As others have pointed out using g++-3.0 for
your own code or for packages is quite painless. The first thing I tried was
using update-alternatives to add g++-3.0 to g++ at a high priority but then I
found out that it wasn't a very brilliant idea. The best is to define CC and
CXX to your liking as environment variables. If I'm going to use only version
3.0 I just add the exports to my .bashrc
So, I have compiled tons of stuff using g++-3.0 and only then I realized the
big problem. I knew that name demangling for all the template and namespace
heavy code would be a bit different but I had expected to be able to debug.
In my experience, I found out that none of the C++ debuggers I use worked
with the new g++ version. I've tried ddd, insight and kdbg which all seemed
to fail at some common debugging operations. I don't think I've been able to
watch or display anything properly. And of course, none of them seem to be
able to demangle much in the code that I work on.
What do you suggest to debug C++ programs compiled under g++-3.0?
Thanks!
- --
Eray Ozkural (exa) <erayo@cs.bilkent.edu.tr>
Comp. Sci. Dept., Bilkent University, Ankara
www: http://www.cs.bilkent.edu.tr/~erayo
GPG public key fingerprint: 360C 852F 88B0 A745 F31B EA0F 7C07 AE16 874D 539C
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE7QPiAfAeuFodNU5wRAmFSAJ9gFcgsOH4heyD2DOrWITk7qUqNyQCfbWQs
3ns7Ikh6uBIN094P86s3ozE=
=3jBK
-----END PGP SIGNATURE-----
Reply to: