R-alpha: gdb and dynamically loaded code

Douglas Bates (bates@stat.wisc.edu)
Sun, 8 Dec 1996 14:32:06 -0600 (CST)

Message-Id: <m0vWptO-000hhyC@franz.stat.wisc.edu>
Date: Sun, 8 Dec 1996 14:32:06 -0600 (CST)
From: Douglas Bates <bates@stat.wisc.edu>
To: R-testers <r-testers@stat.math.ethz.ch>
Subject: R-alpha: gdb and dynamically loaded code

Ross mentioned the possibility of allowing external libraries for R
with their own C or (blech) Fortran code by creating shared object
(.so) files and using the dl library routines like dlopen.  It is a
very clean way of doing the dynamic loading.

Recently while trying to debug some code that was dynamically loaded
into a test version of S4 I discovered that current configurations of
Linux do not allow you to use gdb on such code.

The fault is actually in gdb but there is a work-around that involves
recompiling the library /lib/ld-linux.so.1 and installing it

I mention it here because you may want to remember that you will have
to upgrade your versions of the ld libraries once R does have dynamic
r-testers mailing list -- For info or help, send "info" or "help",
To [un]subscribe, send "[un]subscribe"
(in the "body", not the subject !)  To: r-testers-request@stat.math.ethz.ch