help-octave
[Top][All Lists]
Advanced

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

how do I start octave under gdb?


From: John W. Eaton
Subject: how do I start octave under gdb?
Date: Wed, 27 May 2009 21:32:41 -0400

On 27-May-2009, roumbaba wrote:

| 
| Hi I am ttrying to debug a .oct in octave. The following post says that I
| need to run octave under gdb:
| 
| http://www.nabble.com/How-to-debug-.oct-file-to9222108.html#a9222109
| 
| I can't get 'gdb octave' to work because the file points to a script and not
| an executable:
| "/usr/bin/octave": not in executable format: File format not recognized
| 
| I opened the script and apparently the file:
| /Applications/Octave.app/Contents/Resources/bin/octave-3.0.1 is the one to
| call. 
| 
| But when I try to run 'gdb
| /Applications/Octave.app/Contents/Resources/bin/octave-3.0.1' I then get
| unfound libraries errors:
| 
| Starting program:
| /Applications/Octave.app/Contents/Resources/bin/octave-3.0.1
| dyld: Library not loaded:
| /tmp/dependencies-ppc/lib/octave-3.0.1/liboctinterp.dylib
|   Referenced from:
| /Applications/Octave.app/Contents/Resources/bin/octave-3.0.1
|   Reason: image not found
| 
| Program received signal SIGTRAP, Trace/breakpoint trap.
| 0x8fe05fc4 in __dyld__ZN4dyld5_mainEPK11mach_headeriPPKcS5_S5_ ()
| 
| 
| i am running os X 10.4.11 on a g4 ppc

I don't know precisely what is in the script, but I expect that it
sets up some environment variables for you before it runs Octave.  Why
not make a copy of the script and edit it so that the script includes
the call to gdb to start Octave, then use the modified script when you
want to start a debugging session?

jwe


reply via email to

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