Skip to content

Debug an R windows (Fortran) DLL within R with gdb?

2 messages · Andre Mikulec, Duncan Murdoch

#
Help,

My?Rgui.exe, main.f, main.o, and main.dll are all in the same directory.
When I try to set a breakpoint, I get this response

(gdb) b main.f:3 ? ? ? ? ? ? ??
No source file named main.f

I tried the -gdwarf-2 requirement in both the compiling and linking statements. ?This did not fix the problem.
The cygwin site recommended the -g option. ?I tried this. ?This did not fix the problem.
I did not use R CMD SHLIB ( I ran the statements manually ).

Andre Mikulec
Andre_Mikulec at Hotmail.com


----------------------------------------
#
On 17/09/2014, 11:52 PM, Andre Mikulec wrote:
This is getting to be a question about gdb, and I'm no expert on that.
I do remember there's a command "dir" which says where to find source;
perhaps that is necessary even when the working directory holds the source.
I don't recommend that.  You can add options to R CMD SHLIB, but you are
likely to run into problems with R if you leave any out.

DUncan Murdoch