Re: [Boost-users] debugging templates
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Berenguer Blasi Sent: 23 November 2006 09:44 To: boost-users@lists.boost.org Subject: Re: [Boost-users] debugging templates
Hi,
I guess the subject says it all.
Is there a way to debug templates? with kdbg preferrably?
Kgdb??? The Linux kernel debugger?? Since the kernel is all C, how can you use templates in it? Forgive me if I am missing something!! I have certainly done some debugging using _gdb_ on templated code, but it can be somewhat confusing (rather like template compile errors!), but certainly possible. James
I've read you can with dbx but don?t know if you can with others.
How do you do it?
Thanks. _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
This message (including any attachments) contains confidential and/or proprietary information intended only for the addressee. Any unauthorized disclosure, copying, distribution or reliance on the contents of this information is strictly prohibited and may constitute a violation of law. If you are not the intended recipient, please notify the sender immediately by responding to this e-mail, and delete the message from your system. If you have any questions about this e-mail please notify the sender immediately.
Berenguer Blasi wrote:
Is there a way to debug templates? with kdbg preferrably?
What's your specific problem in debugging template code? Certainly you could debug templated C++ code with any gdb frontend. As James already said, this could get rather confusing, but it's possible without a doubt.
James Hughes wrote: Kgdb??? The Linux kernel debugger?? Since the kernel is all C, how can you use templates > in it?
Forgive me if I am missing something!!
I think he means the KDE frontend to gdb, usually embedded into KDevelop. Regards Hendrik
Thank you Hendrik, yes, I mean the KDE frontend to gdb. The problem is: - I run the program with Kdbg and everything is ok. I can debug, step through the program, etc... - I run the program setting a breakpoint in any line of a template. The debugger apparently is running as step into, step over, run, etc... are available on the menu but hitting them appears to be useless as nothing happens. Removing the breakpoint of the template makes the debugger work again. Any ideas? maybe some compilation flags? completely lost here. -----Mensaje original----- De: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org]En nombre de Hendrik Belitz Enviado el: jueves, 23 de noviembre de 2006 11:08 Para: boost-users@lists.boost.org Asunto: Re: [Boost-users] debugging templates
Berenguer Blasi wrote:
Is there a way to debug templates? with kdbg preferrably?
What's your specific problem in debugging template code? Certainly you could debug templated C++ code with any gdb frontend. As James already said, this could get rather confusing, but it's possible without a doubt.
James Hughes wrote: Kgdb??? The Linux kernel debugger?? Since the kernel is all C, how can you use templates > in it?
Forgive me if I am missing something!!
I think he means the KDE frontend to gdb, usually embedded into KDevelop. Regards Hendrik _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
"Berenguer Blasi"
Thank you Hendrik,
yes, I mean the KDE frontend to gdb.
The problem is:
- I run the program with Kdbg and everything is ok. I can debug, step through the program, etc... - I run the program setting a breakpoint in any line of a template. The debugger apparently is running as step into, step over, run, etc... are available on the menu but hitting them appears to be useless as nothing happens. Removing the breakpoint of the template makes the debugger work again.
Any ideas? maybe some compilation flags?
completely lost here.
Works for me with plain old GDB. -- Dave Abrahams Boost Consulting www.boost-consulting.com
Thank you David,
I think it?s a Kdbg issue (though I thought I would use gdb behind the
scenes)...
Anybody knows something like Kgdb WITH templates?
Thanks
-----Mensaje original-----
De: boost-users-bounces@lists.boost.org
[mailto:boost-users-bounces@lists.boost.org]En nombre de David Abrahams
Enviado el: jueves, 23 de noviembre de 2006 22:55
Para: boost-users@lists.boost.org
Asunto: Re: [Boost-users] debugging templates
"Berenguer Blasi"
Thank you Hendrik,
yes, I mean the KDE frontend to gdb.
The problem is:
- I run the program with Kdbg and everything is ok. I can debug, step through the program, etc... - I run the program setting a breakpoint in any line of a template. The debugger apparently is running as step into, step over, run, etc... are available on the menu but hitting them appears to be useless as nothing happens. Removing the breakpoint of the template makes the debugger work again.
Any ideas? maybe some compilation flags?
completely lost here.
Works for me with plain old GDB. -- Dave Abrahams Boost Consulting www.boost-consulting.com _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Am Freitag, den 24.11.2006, 10:32 +0100 schrieb Berenguer Blasi:
Thank you David,
I think it?s a Kdbg issue (though I thought I would use gdb behind the scenes)...
Anybody knows something like Kgdb WITH templates?
Thanks
What about DDD ? http://www.gnu.org/software/ddd/ I'm not an expert, but its the best(most bug free) GDB front-end I know. Maik
Thanks James, yes it's kind of strange but there's a guy called Alvin Beach here http://www.usenetlinux.com/archive/topic.php/t-310454.html claiming he does it... Any other suggestions? -----Mensaje original----- De: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org]En nombre de Hughes, James Enviado el: jueves, 23 de noviembre de 2006 10:55 Para: boost-users@lists.boost.org Asunto: Re: [Boost-users] debugging templates
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Berenguer Blasi Sent: 23 November 2006 09:44 To: boost-users@lists.boost.org Subject: Re: [Boost-users] debugging templates
Hi,
I guess the subject says it all.
Is there a way to debug templates? with kdbg preferrably?
Kgdb??? The Linux kernel debugger?? Since the kernel is all C, how can you use templates in it? Forgive me if I am missing something!! I have certainly done some debugging using _gdb_ on templated code, but it can be somewhat confusing (rather like template compile errors!), but certainly possible. James
I've read you can with dbx but don?t know if you can with others.
How do you do it?
Thanks. _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
This message (including any attachments) contains confidential and/or proprietary information intended only for the addressee. Any unauthorized disclosure, copying, distribution or reliance on the contents of this information is strictly prohibited and may constitute a violation of law. If you are not the intended recipient, please notify the sender immediately by responding to this e-mail, and delete the message from your system. If you have any questions about this e-mail please notify the sender immediately. _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (5)
-
Berenguer Blasi
-
David Abrahams
-
Hendrik Belitz
-
Hughes, James
-
Maik Beckmann