I am using gdb for debugging c project source code.
I compile as shown:
./configure --enable-debug CFLAGS="-g -o0" <br />
make --debug=a
I want to debugging stop at specific file. so
when I set break point by using
(gdb) break main.c:672
it says :
No source file named main.c.
even when I pass specific function name (in main.c file) to break . it says: such function not defined.
my current directory has this main.c file. I am using Cygwin on widnows. when I set break point by using
(gdb) break main
it set break point at a main function of Cygwin file, not in my source code.
1.how can I fix my first problem?
2.just curious, how to avoid second problem, if there is same function name within Cygwin files and my source code?
Since I am new at linux c programming, I am having many troubles.
Please help, Many thanks in advance