pleydell at supagro.inra.fr
2009-Sep-05 08:36 UTC
[Rd] Unexpected behaviour of "next line" in gdb
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/