From pleydell at supagro.inra.fr  Sat Sep  5 10:36:26 2009
From: pleydell at supagro.inra.fr (pleydell at supagro.inra.fr)
Date: Sat, 05 Sep 2009 10:36:26 +0200
Subject: [Rd] Unexpected behaviour of "next line" in gdb
Message-ID: <20090905103626.0tjsgnso2g0gcw0o@web.supagro.inra.fr>

I compile some C code using

R CMD SHLIB buggyCode.c --ggdb --O0

I thought the -O0 flag would avoid gdb ~ optimisation problems. But each time I
step through the code in gdb using "n" (next line) the executed line order is
not as expected ("looks" more like a random walk around the expected next
line). So to me it looks like there is still a gdb ~ optimisation conflict.

Does this mean I have to have a copy of R compiled from source using the -O0
flag too?

thanks
David


-- 
David Pleydell
UMR BGPI
CIRAD
TA A-54/K
Campus International de Baillarguet
34398 MONTPELLIER CEDEX 5
FRANCE
Tel: +33 4 99 62 48 65 - Secr?tariat : +33 4 99 62 48 21
Fax : +33 4 99 62 48 22
http://umr-bgpi.cirad.fr/trombinoscope/pleydell_d.htm
https://sites.google.com/site/drjpleydell/



[Rd] Unexpected behaviour of "next line" in gdb
pleydell at supagro.inra.fr