help-octave
[Top][All Lists]
Advanced

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

Re: How to debug .oct file


From: Laurent Mazet
Subject: Re: How to debug .oct file
Date: Fri, 18 Jun 2004 17:36:03 +0200

On Fri, 18 Jun 2004 10:14:01 -0500
<address@hidden> wrote:

> Hi,
> 
> I wrote some .oct files and use them in a .m file. How ever I
> got segmentation fault when I call the .oct files in octave. I
> was wondering if in octave, we have a debug method to debug
> the .oct files. If now, how do you do to debug those written
> in c++ but called in octave.
> 

1- compile your oct file with -g option and do not strip it
2- usage 'nm -C' to find real octave function name
3- launch octave inside gdb ('gdb octave' and run)
4- ask for your oct fil help page to load symbol
5- interupt octave with Control-c and set a breakpoint inside your oct function.
6- continue debugging ('cont')

Laurent

-- 
Dr. Laurent Mazet: Research Engineer /V\ Centre de Recherche de MOTOROLA
Tel: +33 (0)1 69 35 48 30 =-=-=-=-=-=-=-=-=-=-= Email: address@hidden



-------------------------------------------------------------
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
-------------------------------------------------------------



reply via email to

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