e****d 发帖数: 333 | 1 设置break point,为什么一个函数可以设置断点,另一个却不可仪呢?非常奇怪。
一个class里边的两个public函数,f(), g(),没有太大区别
b classname::f,
Breakpoint 3 at 0x8da5514: file ../src/theclassexample.C, line 198. (2
locations)
Breakpoint 4 at 0x851e0aa: file ../include/library/thecalssexample.H, line
24.
b calssname::g,
the class thecalssexample does not have any method named g
Hint: try 'thecalssexample::g or 'thecalssexample::g | p*u 发帖数: 2454 | 2
like gdb suggested, use 'thecalssexample::g to find full list of
methods in class...
【在 e****d 的大作中提到】 : 设置break point,为什么一个函数可以设置断点,另一个却不可仪呢?非常奇怪。 : 一个class里边的两个public函数,f(), g(),没有太大区别 : b classname::f, : Breakpoint 3 at 0x8da5514: file ../src/theclassexample.C, line 198. (2 : locations) : Breakpoint 4 at 0x851e0aa: file ../include/library/thecalssexample.H, line : 24. : b calssname::g, : the class thecalssexample does not have any method named g : Hint: try 'thecalssexample::g or 'thecalssexample::g
| b*******s 发帖数: 5216 | 3 第二个是在一个so里面吧,是不是还没加载?
到加载地方设个断点,然后再设应该就可以
【在 e****d 的大作中提到】 : 设置break point,为什么一个函数可以设置断点,另一个却不可仪呢?非常奇怪。 : 一个class里边的两个public函数,f(), g(),没有太大区别 : b classname::f, : Breakpoint 3 at 0x8da5514: file ../src/theclassexample.C, line 198. (2 : locations) : Breakpoint 4 at 0x851e0aa: file ../include/library/thecalssexample.H, line : 24. : b calssname::g, : the class thecalssexample does not have any method named g : Hint: try 'thecalssexample::g or 'thecalssexample::g
| t*****n 发帖数: 4908 | 4 你确认有编译多的有debug信息?
【在 e****d 的大作中提到】 : 设置break point,为什么一个函数可以设置断点,另一个却不可仪呢?非常奇怪。 : 一个class里边的两个public函数,f(), g(),没有太大区别 : b classname::f, : Breakpoint 3 at 0x8da5514: file ../src/theclassexample.C, line 198. (2 : locations) : Breakpoint 4 at 0x851e0aa: file ../include/library/thecalssexample.H, line : 24. : b calssname::g, : the class thecalssexample does not have any method named g : Hint: try 'thecalssexample::g or 'thecalssexample::g
|
|