help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setting breakpoint in template member function


From: mathieu
Subject: Setting breakpoint in template member function
Date: Fri, 09 Nov 2007 17:43:02 -0000
User-agent: G2/1.0

Hello,

  Here is how I am trying to set a breakpoint in my c++ code:

$ gdb ./bin/mytest
(gdb) run -i foo
(gdb) rb Class::TemplateFunction
(gdb) r
  -> y
...
Breakpoint 2, Class::TemplateFunction<T> at Class.txx:33
(gdb) delete 2
(gdb) break 43
(gdb) cont

And the program goes right to the end, displaying message as indicated
on line Class.txx:43

Code was compiled using g++ 4.2 (debian) with compile option -g

What I am doing wrong ?

Thanks
-Mathieu



reply via email to

[Prev in Thread] Current Thread [Next in Thread]