[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
question: DLD write and debug
From: |
Eric Chassande-Mottin |
Subject: |
question: DLD write and debug |
Date: |
Fri, 16 Apr 2004 20:35:16 +0200 (CEST) |
hi all,
two questions about DLD C++ writing and debugging.
1) in gdb, how do get the values of a vector (ColumnVector or RowVector)
or of a Matrix when I am debugging a DLD?
foo.cc:
[...]
ColumnVector x(10);
[...]
i tried
print x
print x(1)
print x.data(1)
but I can only get the address pointing on the struct.
2) what happens if I declare C++ (not Octave) global variables in a DLD?
i.e., if I declare a variable _before_ starting any function, like:
static double x=0.0;
DEFUN_DLD (foo, args, ,
"blablabla\n")
{
[...]
}
can I realibly use x in all functions declared in the file?
or should I avoid that? (if yes, why?)
does that interfere with Octave's workspace ?
thanks, é.
-------------------------------------------------------------
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
-------------------------------------------------------------