[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: help regarding DDD break points
From: |
Mara Guida |
Subject: |
Re: help regarding DDD break points |
Date: |
28 Mar 2006 00:54:37 -0800 |
User-agent: |
G2/0.2 |
doshirushabh@hotmail.com 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.