Mail Archives: djgpp/1999/12/29/09:35:29
On Wed, 29 Dec 1999, Leon wrote:
> but - how would one put a break point in a cpp file of a TEMPLATE class?
>
> i pesume that the source file of a template class is not created in general
> but the each instance of the template type provided and thus the error of
> "cannot find such a source file" is provided by gdb?
One of the subcommands of GDB's "info" command will display all the
symbols that GDB knows about in your program. You could use this feature
to find the name of the function where you want to put a breakpoint.
Another hint is to use the -gstabs+ switch when compiling your program,
it generates debug info which supports C++ programs much better than the
default -g. This is explained in the FAQ.
- Raw text -