changeset 30030:06f4e4d986a1

* gdbinit: Update for new array data member names.
author John W. Eaton <jwe@octave.org>
date Sat, 21 Aug 2021 21:45:19 -0400
parents 40157299fdeb
children cf60f8f636f6
files etc/gdbinit
diffstat 1 files changed, 16 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- a/etc/gdbinit	Sat Aug 21 21:54:34 2021 +0200
+++ b/etc/gdbinit	Sat Aug 21 21:45:19 2021 -0400
@@ -40,9 +40,9 @@
 
 define display-dims
   echo ndims: \ 
-  output $arg0.rep[-1]
+  output $arg0.m_num_dims
   echo \ndims: \ 
-  output *$arg0.rep@$arg0.rep[-1]
+  output *$arg0.m_dims@$arg0.m_num_dims
   echo \n
   dont-repeat
 end
@@ -59,11 +59,13 @@
   echo array object: \ 
   output $arg0
   echo \ndimensions:\n
-  display-dims $arg0.dimensions
+  display-dims $arg0.m_dimensions
   echo \nrep = \ 
-  output *$arg0.rep
+  output *$arg0.m_rep
   echo \nrep.data = \ 
-  output *$arg0.rep.data@$arg0.rep.len
+  output *$arg0.m_rep.m_data@$arg0.m_rep.m_len
+  echo \nrep.slice_data = \ 
+  output *$arg0.m_slice_data@$arg0.m_slice_len
   echo \n
   dont-repeat
 end
@@ -82,18 +84,16 @@
 define display-sparse-array
   echo sparse object: \ 
   output $arg0
-  echo \ndimensions.rep[0] = \ 
-  display-dims $arg0.dimensions
-  echo \ndimensions.rep[1] = \ 
-  output $arg0.dimensions.rep[1]
+  echo \ndimensions:\n 
+  display-dims $arg0.m_dimensions
   echo \nrep = \ 
-  output *$arg0.rep
-  echo \nrep.d = \ 
-  output *$arg0.rep.d@$arg0.rep.nzmx
-  echo \nrep.r = \ 
-  output *$arg0.rep.r@$arg0.rep.nzmx
-  echo \nrep.c = \ 
-  output *$arg0.rep.c@($arg0.rep.ncols+1)
+  output *$arg0.m_rep
+  echo \nrep.data = \ 
+  output *$arg0.m_rep.m_data@$arg0.m_rep.m_nzmax
+  echo \nrep.ridx = \ 
+  output *$arg0.m_rep.m_ridx@$arg0.m_rep.m_nzmax
+  echo \nrep.cidx = \ 
+  output *$arg0.m_rep.m_cidx@($arg0.m_rep.m_ncols+1)
   echo \n
   dont-repeat
 end