Multiple breakpoint locations

Jim Blandy jimb@codesourcery.com
Wed Nov 14 21:26:00 GMT 2007


Andreas Schwab <schwab at suse.de> writes:
> It is valid for function template instantiations to only differ in the
> return type.  See <http://gcc.gnu.org/ml/gcc-bugs/2003-06/msg02798.html>
> for an example.

Following that link, I think I now better appreciate why full C++
support in GDB is basically impossible: in order to decide which 'fun'
template the call in 'main' refers to, one must try to instantiate
each template and type-check the resulting code.  So GDB would need to
essentially incorporate a full C++ front end.



More information about the Gdb mailing list