[Rd] Unexpected behaviour of "next line" in gdb
pleydell at supagro.inra.fr
pleydell at supagro.inra.fr
Sat Sep 5 10:36:26 CEST 2009
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/
More information about the R-devel
mailing list