[R] debugger not recognizing C routine names
Peter Dalgaard BSA
p.dalgaard at biostat.ku.dk
Fri Dec 15 17:22:50 CET 2000
Jonathan Myles <mylesj at icrf.icnet.uk> writes:
>
> [Previously saved workspace restored]
>
>
> > ttest <- function(x){
> + y <- numeric(1)
> + zz <- .C("test",as.integer(x),as.integer(y))
> + zz[[2]]
> + }
> > dyn.load("test.so")
> > ttest(8)
> [1] 10
> >
> > ## cntrl-C cntrl-C
> Program received signal SIGINT, Interrupt.
> 0x4012ec7e in select () from /lib/libc.so.6
> (gdb) b test
> Function "test" not defined.
> (gdb) signal 0
> Continuing with no signal.
>
> > q()
> Save workspace image? [y/n/c]: n
??
Does this work then?
> library(ctest)
>
Program received signal SIGINT, Interrupt.
0x4016117e in __select () from /lib/libc.so.6
(gdb) b fexact
Breakpoint 1 at 0x40f9d378: file
../../../../../R/src/library/ctest/src/fexact.c, line 161.
(gdb) The program is running. Exit anyway? (y or n) n
Not confirmed.
(gdb) q
The program is running. Exit anyway? (y or n) y
--
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list