[EMAIL PROTECTED] wrote:
> File :  main.cpp
> ------------------------------------------------------------
> #include <stdio.h>
> void main() {
>
> int a = 0;
> #include "test.cpp"
> printf(" hi \n");
>
> }
>
>
> File test.cpp
> --------------------------------------------------------------------------
> printf("hello world\n");
> ---------------------------------------------------------------------------
>
> I compile main.cpp with -g option and gdb the a.out file. I am trying
> to set the break point at #include "test.cpp".  But its never
> recognized. Is there any way i can step in test.cpp ??

Try
(gdb) break test.cpp:1

The compiler never sees the line with #include. That line was removed
in previous steps by the preprocessor.

_______________________________________________
help-gnu-utils mailing list
help-gnu-utils@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-utils

Reply via email to