From help-octave-request at bevo dot che dot wisc dot edu Wed Feb 7 10:10:40 2001 Subject: debugging dynamic functions From: Braddock Gaskill To: help-octave at bevo dot che dot wisc dot edu Date: Wed, 7 Feb 2001 11:13:07 -0500 --ftEhullJWpWg/VHq Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Three questions: 1) What is the proper way to debug dynamically loaded octave functions usin= g gdb? 2) What is the 2.0.16 and 2.1.x behavior for loading and unloading DL funct= ions? 3) What is the proper way to have .oct files pull in an outside library they are dependant on? A few years ago, I seem to remember that once I called a DL function in octave, it stayed loaded, which actually caused symbol problems because I had multiple DL functions which were glue to a single static library of routines, so I statically linked one function which I ran first. Since then, the behavior seems to have changed: I can now statically link the same library with a set of DL function .oct files and not have any symbol conflicts. Will having the .oct files link to a shared library work? I was assuming Octave now unloads the DLF right after the call is made now? Is there a clean way to do this? For debugging DLFs, I've gathered that the right way is to wait until the dlopen call, then start up gdb and attach it to the running octave process with the symbols for the object to debug on the command line. I haven't gotten this to work. Am I close? Thanks, Braddock --=20 Invention is 99% perspiration; is it fair to patent the 1% of inspiration? = -BG --ftEhullJWpWg/VHq Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 5.0i for non-commercial use MessageID: h84n3lEDk24OGBkDrFYx3DiAtBYi1Kr6 iQBVAwUBOoF0Ejf2QbQMWMIFAQHaXAH9H8+p4ig7Y+/DwPxCz99fEZKl3nBei3Ep t93s7pRwmlHezbM6w5HxBAOp4MiQiSiR7AjjBTFmH/T4byhd2Xbc0w== =xNEt -----END PGP SIGNATURE----- --ftEhullJWpWg/VHq-- ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------