This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Command flags for debugging template code
- From: "Dima Sorkin" <dima dot sorkin at gmail dot com>
- To: "John Love-Jensen" <eljay at adobe dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sun, 8 Apr 2007 22:06:37 +0300
- Subject: Re: Command flags for debugging template code
- References: <1174958247.3599.15.camel@localhost.localdomain> <C22E6D90.200E1%eljay@adobe.com>
On 3/27/07, John Love-Jensen wrote:
I now realize I haven't needed to do this trick in many years. So either
the debuggers are better on the platforms I'm using and can sensically step
into inline functions, or I'm making less boo-boos.
Still, debugging templates is the main problem for me in the gnu tools for c++.
Especially when there are instantiations with multiple types, in the
same program.
http://sources.redhat.com/ml/gdb/2006-06/msg00132.html
http://sources.redhat.com/ml/gdb/2006-06/msg00128.html
But your trick does help to stop inside some template function,
regardless of the type it was instantiated for.
Thanks, regards,
Dima.