views:

76

answers:

0

I am using cygwin on windows XP. I have a C++ project using makefile. But I am getting a segmentation fault. But gdb is not stopping at breakpoints. I have -g option enabled in makefiles. Gdb shows me the line where the fault is generated. But if I run after inserting breakpoint at any point before the fault line, gdb does not stops. It stops at the fault line only. What is the problem?

I dont think that there is problem with profiling. Because backtrace command correctly shows me the calls.

For e.g if I do "b main" and then "r" and then "s", it gives me this message: alt text

If I insert breakpoints at other places also, then also it does not stop. Please help.