This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Multiple breakpoint locations


Jim Blandy wrote:

> 
> 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.

Or have GCC export a library that GDB can use -- which seems right
approach.

Generally, overload resolution in C++ involves instantiating templates
and evaluating constant expressions and yes, that requires knowing lots of things.

- Volodya




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]