help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

function reload


From: Matyas Sustik
Subject: function reload
Date: Fri, 18 Nov 2011 16:37:52 -0600

Hi All,

I have an inconvenience when debugging octave programs.  Maybe someone
here has found a way to do it better.

When I debug my oct -file (actually --mex type) then I have to restart
octave after each recompile of the code, otherwise
a segfault occurs.  This happens even when I compile from inside
octave using mkoctfile.  It would be nice if the compiler would
unload the function before it is recompiled.  (I would consider doing
a patch for this if someone points me to the right direction
and gets me started.  I have never touched the octave code before.)

Actually, I compile using a Makefile outside of the octave session.
Is there any way to make this work in that scenario?
To be clear here is what I am doing:

(shell> refers to commands outside the octave session)
octave3.2:3>  foo()
shell> make foo.mex
octave3.2:3>  foo()
panic: Segmentation fault -- stopping myself...

Recompiling is a typical action during debugging.  I hate to reload
the environment after every recompile.

Thanks!
-Matyas


reply via email to

[Prev in Thread] Current Thread [Next in Thread]