Debug problem
Joao Belo
jbelo@isel.pt
Tue Feb 29 09:17:00 GMT 2000
Hi,
I'm having a problem trying to debug C++ code with GDB. The problem is this:
The ':n' command in GDB at line 8 of the following code makes the program
run to completion.
1 void g()
2 {
3 }
4
5 template<class T>
6 void f(T a)
7 {
8 g();
9 g();
10 }
11
12 int main()
13 {
14 f(1);
15 }
command line:
g++ -g a.cc
I'm using gcc version 2.95.2 19991024 (release) with cygwin B20.
Is this known behavior?
Thank you,
Joao Belo
More information about the Gcc-bugs
mailing list