This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
gdb: info local with set loggin to store arrays to .m file.
- From: "David Yu \( III \)" <wcyu at iii dot org dot tw>
- To: <gdb at sourceware dot org>
- Date: Fri, 17 Mar 2017 09:32:31 +0800
- Subject: gdb: info local with set loggin to store arrays to .m file.
- Authentication-results: sourceware.org; auth=none
Hi GDB developer:
I tried to use "set loggin" and "info local" to store local arrays in m
file, and use octave to execute this m file to input arrays from the m file.
But with this method, if this array size is too long, array cannot fill
elements on each line of m file and the end part of elements would switch to
next line, so that octave cannot identify this array.
How can I solve this issue? Any other method can accomplish it?
Example in m file with "set loggin" and "info local":
Octave cannot identify the following array
A = { 0,0,0,0,0,0,,0,0,0,0,0,0,0,00,0,0,0,0,0,0 <some empty space not be
fill> ,0,0,0,0,0,0,0,0}
After manual modification:
A = { 0,0,0,0,0,0,,0,0,0,0,0,0,0,00,0,0,0,0,0,0,0,0,0,0,0,0,0,0}
Octave can identify this array
David