Re: DDD

Russell Shaw <[email protected]> Fri, 13 Mar 2015 01:13:52 +1100
Newsgroups gmane.comp.gdb.devel,gmane.comp.debugging.ddd.general
Message-ID <[email protected]>
On 12/03/15 20:02, Shahbaz Youssefi wrote:
> Do you have optimization enabled when you compile your code?

No. I always compile with CFLAGS="-g -O0"

> On Wed, Mar 11, 2015 at 3:24 PM, Russell Shaw <[email protected]
> <mailto:[email protected]>> wrote:
>
>     Hi,
>     When i set a breakpoint at "main", it appears half way between the first and
>     second line:
>
>     int main(int argc, char *argv[])
>     {
>              int ret = EXIT_SUCCESS;
>     <-- red dot
>              ...
>
>     Is there any fix for that?
>
>     I tried recompiling, so the source is not out of sync with the binary.