DDD
Russell Shaw
rjshaw@netspace.net.au
Thu Mar 12 14:13:00 GMT 2015
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 <rjshaw@netspace.net.au
> <mailto:rjshaw@netspace.net.au>> 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.
More information about the Gdb
mailing list