Mercurial > hg > octave-nkf
annotate etc/gdbinit @ 20076:781adfc2958c draft obsolete nkf
Build qt graphics toolkit menus with uimenu
* libgui/graphics/Figure.cc, libgui/graphics/Figure.h: Revert cset 7335cc071ab0
and remove all menu items.
* scripts/gui/private/__get_funcname__.m: Fix typo
* scripts/plot/util/private/__add_default_menu__.m: Enable uimenu for qt
graphics toolkit and fix setting pan/rotate/zoom for qt and fltk
author | Stefan Mahr <dac922@gmx.de> |
---|---|
date | Fri, 27 Feb 2015 18:36:05 +0100 |
parents | 446c46af4b42 |
children |
rev | line source |
---|---|
16602
2c11d7c6cc21
turn off gdb thread messages by default
John W. Eaton <jwe@octave.org>
parents:
13690
diff
changeset
|
1 ## Disable the next line if you really need to see the |
2c11d7c6cc21
turn off gdb thread messages by default
John W. Eaton <jwe@octave.org>
parents:
13690
diff
changeset
|
2 ## thread create/exit messages. |
2c11d7c6cc21
turn off gdb thread messages by default
John W. Eaton <jwe@octave.org>
parents:
13690
diff
changeset
|
3 |
2c11d7c6cc21
turn off gdb thread messages by default
John W. Eaton <jwe@octave.org>
parents:
13690
diff
changeset
|
4 set print thread-events off |
2c11d7c6cc21
turn off gdb thread messages by default
John W. Eaton <jwe@octave.org>
parents:
13690
diff
changeset
|
5 |
10360 | 6 ## Helpful macros for debugging Octave. |
7 | |
13328
a2144dbc2f3a
gdbinit: Add documentation for macros. Add alias for new show_octave_dbstack command.
Rik <octave@nomad.inbox5.com>
parents:
12733
diff
changeset
|
8 ############################################################ |
10360 | 9 ## Display a dim-vector object. |
10 | |
11 define display-dims | |
19790
446c46af4b42
strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents:
16602
diff
changeset
|
12 echo ndims: \ |
10360 | 13 output $arg0.rep[-1] |
19790
446c46af4b42
strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents:
16602
diff
changeset
|
14 echo \ndims: \ |
10360 | 15 output *$arg0.rep@$arg0.rep[-1] |
16 echo \n | |
17 dont-repeat | |
18 end | |
19 | |
13328
a2144dbc2f3a
gdbinit: Add documentation for macros. Add alias for new show_octave_dbstack command.
Rik <octave@nomad.inbox5.com>
parents:
12733
diff
changeset
|
20 document display-dims |
a2144dbc2f3a
gdbinit: Add documentation for macros. Add alias for new show_octave_dbstack command.
Rik <octave@nomad.inbox5.com>
parents:
12733
diff
changeset
|
21 Usage: display-dims DIM_VECTOR |
a2144dbc2f3a
gdbinit: Add documentation for macros. Add alias for new show_octave_dbstack command.
Rik <octave@nomad.inbox5.com>
parents:
12733
diff
changeset
|
22 Display the contents of an Octave dimension vector. |
a2144dbc2f3a
gdbinit: Add documentation for macros. Add alias for new show_octave_dbstack command.
Rik <octave@nomad.inbox5.com>
parents:
12733
diff
changeset
|
23 end |
a2144dbc2f3a
gdbinit: Add documentation for macros. Add alias for new show_octave_dbstack command.
Rik <octave@nomad.inbox5.com>
parents:
12733
diff
changeset
|
24 |
a2144dbc2f3a
gdbinit: Add documentation for macros. Add alias for new show_octave_dbstack command.
Rik <octave@nomad.inbox5.com>
parents:
12733
diff
changeset
|
25 ############################################################ |
10360 | 26 ## Display a dense array object. |
27 | |
28 define display-dense-array | |
19790
446c46af4b42
strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents:
16602
diff
changeset
|
29 echo array object: \ |
10360 | 30 output $arg0 |
31 echo \ndimensions:\n | |
32 display-dims $arg0.dimensions | |
19790
446c46af4b42
strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents:
16602
diff
changeset
|
33 echo \nrep = \ |
10360 | 34 output *$arg0.rep |
19790
446c46af4b42
strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents:
16602
diff
changeset
|
35 echo \nrep.data = \ |
10360 | 36 output *$arg0.rep.data@$arg0.rep.len |
37 echo \n | |
38 dont-repeat | |
39 end | |
40 | |
13328
a2144dbc2f3a
gdbinit: Add documentation for macros. Add alias for new show_octave_dbstack command.
Rik <octave@nomad.inbox5.com>
parents:
12733
diff
changeset
|
41 document display-dense-array |
a2144dbc2f3a
gdbinit: Add documentation for macros. Add alias for new show_octave_dbstack command.
Rik <octave@nomad.inbox5.com>
parents:
12733
diff
changeset
|
42 Usage: display-dense-array ARRAY |
a2144dbc2f3a
gdbinit: Add documentation for macros. Add alias for new show_octave_dbstack command.
Rik <octave@nomad.inbox5.com>
parents:
12733
diff
changeset
|
43 Display the contents of an ordinary, i.e., dense Octave array. |
a2144dbc2f3a
gdbinit: Add documentation for macros. Add alias for new show_octave_dbstack command.
Rik <octave@nomad.inbox5.com>
parents:
12733
diff
changeset
|
44 |
a2144dbc2f3a
gdbinit: Add documentation for macros. Add alias for new show_octave_dbstack command.
Rik <octave@nomad.inbox5.com>
parents:
12733
diff
changeset
|
45 See also [display-sparse-array] for showing the contents |
a2144dbc2f3a
gdbinit: Add documentation for macros. Add alias for new show_octave_dbstack command.
Rik <octave@nomad.inbox5.com>
parents:
12733
diff
changeset
|
46 of sparse Octave arrays. |
a2144dbc2f3a
gdbinit: Add documentation for macros. Add alias for new show_octave_dbstack command.
Rik <octave@nomad.inbox5.com>
parents:
12733
diff
changeset
|
47 end |
a2144dbc2f3a
gdbinit: Add documentation for macros. Add alias for new show_octave_dbstack command.
Rik <octave@nomad.inbox5.com>
parents:
12733
diff
changeset
|
48 |
a2144dbc2f3a
gdbinit: Add documentation for macros. Add alias for new show_octave_dbstack command.
Rik <octave@nomad.inbox5.com>
parents:
12733
diff
changeset
|
49 ############################################################ |
10360 | 50 ## Display a sparse array object. |
51 | |
52 define display-sparse-array | |
19790
446c46af4b42
strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents:
16602
diff
changeset
|
53 echo sparse object: \ |
10360 | 54 output $arg0 |
19790
446c46af4b42
strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents:
16602
diff
changeset
|
55 echo \ndimensions.rep[0] = \ |
10360 | 56 display-dims $arg0.dimensions |
19790
446c46af4b42
strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents:
16602
diff
changeset
|
57 echo \ndimensions.rep[1] = \ |
10360 | 58 output $arg0.dimensions.rep[1] |
19790
446c46af4b42
strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents:
16602
diff
changeset
|
59 echo \nrep = \ |
10360 | 60 output *$arg0.rep |
19790
446c46af4b42
strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents:
16602
diff
changeset
|
61 echo \nrep.d = \ |
10360 | 62 output *$arg0.rep.d@$arg0.rep.nzmx |
19790
446c46af4b42
strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents:
16602
diff
changeset
|
63 echo \nrep.r = \ |
10360 | 64 output *$arg0.rep.r@$arg0.rep.nzmx |
19790
446c46af4b42
strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents:
16602
diff
changeset
|
65 echo \nrep.c = \ |
10360 | 66 output *$arg0.rep.c@($arg0.rep.ncols+1) |
67 echo \n | |
68 dont-repeat | |
69 end | |
13328
a2144dbc2f3a
gdbinit: Add documentation for macros. Add alias for new show_octave_dbstack command.
Rik <octave@nomad.inbox5.com>
parents:
12733
diff
changeset
|
70 |
a2144dbc2f3a
gdbinit: Add documentation for macros. Add alias for new show_octave_dbstack command.
Rik <octave@nomad.inbox5.com>
parents:
12733
diff
changeset
|
71 document display-sparse-array |
a2144dbc2f3a
gdbinit: Add documentation for macros. Add alias for new show_octave_dbstack command.
Rik <octave@nomad.inbox5.com>
parents:
12733
diff
changeset
|
72 Usage: display-sparse-array SPARSE_ARRAY |
a2144dbc2f3a
gdbinit: Add documentation for macros. Add alias for new show_octave_dbstack command.
Rik <octave@nomad.inbox5.com>
parents:
12733
diff
changeset
|
73 Display the contents of a sparse Octave array. |
a2144dbc2f3a
gdbinit: Add documentation for macros. Add alias for new show_octave_dbstack command.
Rik <octave@nomad.inbox5.com>
parents:
12733
diff
changeset
|
74 |
a2144dbc2f3a
gdbinit: Add documentation for macros. Add alias for new show_octave_dbstack command.
Rik <octave@nomad.inbox5.com>
parents:
12733
diff
changeset
|
75 See also [display-dense-array] for showing the contents |
a2144dbc2f3a
gdbinit: Add documentation for macros. Add alias for new show_octave_dbstack command.
Rik <octave@nomad.inbox5.com>
parents:
12733
diff
changeset
|
76 of ordinary Octave arrays. |
a2144dbc2f3a
gdbinit: Add documentation for macros. Add alias for new show_octave_dbstack command.
Rik <octave@nomad.inbox5.com>
parents:
12733
diff
changeset
|
77 end |
a2144dbc2f3a
gdbinit: Add documentation for macros. Add alias for new show_octave_dbstack command.
Rik <octave@nomad.inbox5.com>
parents:
12733
diff
changeset
|
78 |
a2144dbc2f3a
gdbinit: Add documentation for macros. Add alias for new show_octave_dbstack command.
Rik <octave@nomad.inbox5.com>
parents:
12733
diff
changeset
|
79 ############################################################ |
a2144dbc2f3a
gdbinit: Add documentation for macros. Add alias for new show_octave_dbstack command.
Rik <octave@nomad.inbox5.com>
parents:
12733
diff
changeset
|
80 |
19790
446c46af4b42
strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents:
16602
diff
changeset
|
81 ## Display Octave debugging stack |
13328
a2144dbc2f3a
gdbinit: Add documentation for macros. Add alias for new show_octave_dbstack command.
Rik <octave@nomad.inbox5.com>
parents:
12733
diff
changeset
|
82 |
a2144dbc2f3a
gdbinit: Add documentation for macros. Add alias for new show_octave_dbstack command.
Rik <octave@nomad.inbox5.com>
parents:
12733
diff
changeset
|
83 define show-octave-dbstack |
13690
f0daeb0eab45
gdbinit: Fix declaration of new show-octave-dbstack macro
Rik <octave@nomad.inbox5.com>
parents:
13328
diff
changeset
|
84 call show_octave_dbstack () |
13328
a2144dbc2f3a
gdbinit: Add documentation for macros. Add alias for new show_octave_dbstack command.
Rik <octave@nomad.inbox5.com>
parents:
12733
diff
changeset
|
85 end |
a2144dbc2f3a
gdbinit: Add documentation for macros. Add alias for new show_octave_dbstack command.
Rik <octave@nomad.inbox5.com>
parents:
12733
diff
changeset
|
86 |
a2144dbc2f3a
gdbinit: Add documentation for macros. Add alias for new show_octave_dbstack command.
Rik <octave@nomad.inbox5.com>
parents:
12733
diff
changeset
|
87 document show-octave-dbstack |
a2144dbc2f3a
gdbinit: Add documentation for macros. Add alias for new show_octave_dbstack command.
Rik <octave@nomad.inbox5.com>
parents:
12733
diff
changeset
|
88 Usage: show-octave-dbstack |
a2144dbc2f3a
gdbinit: Add documentation for macros. Add alias for new show_octave_dbstack command.
Rik <octave@nomad.inbox5.com>
parents:
12733
diff
changeset
|
89 Display the contents of the current Octave debugging stack. |
a2144dbc2f3a
gdbinit: Add documentation for macros. Add alias for new show_octave_dbstack command.
Rik <octave@nomad.inbox5.com>
parents:
12733
diff
changeset
|
90 |
a2144dbc2f3a
gdbinit: Add documentation for macros. Add alias for new show_octave_dbstack command.
Rik <octave@nomad.inbox5.com>
parents:
12733
diff
changeset
|
91 This is the function stack that the Octave interpreter is processing |
a2144dbc2f3a
gdbinit: Add documentation for macros. Add alias for new show_octave_dbstack command.
Rik <octave@nomad.inbox5.com>
parents:
12733
diff
changeset
|
92 and will be different from the C++ stack being debugged with gdb. |
a2144dbc2f3a
gdbinit: Add documentation for macros. Add alias for new show_octave_dbstack command.
Rik <octave@nomad.inbox5.com>
parents:
12733
diff
changeset
|
93 end |
a2144dbc2f3a
gdbinit: Add documentation for macros. Add alias for new show_octave_dbstack command.
Rik <octave@nomad.inbox5.com>
parents:
12733
diff
changeset
|
94 |