This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gdb: info local with set loggin to store arrays to .m file.


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]