[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.cdt] Re: Debugger: Visualise array (draw graph or similar)

Toralf Lund wrote:

Does the Eclipse debugger has a tool for visualising arrays?
Unfortunately, not (I miss this feature too). However, you can use gnuplot via a gdb command.
Put the content of the plot1d.gdb from http://sourceware.org/gdb/wiki/PlottingFromGDB) in your .gdbinit.
If you want to visualize an array called 'myarray' you activate the gdb console in Eclipse and type:
plot1d *((myarray)+STARTIDX)@LENGTH


Of course, you have to substitute STARTIDX (first index to plot) and LENGTH (number of elements to plot).
It is not very user-friendly, but at least a starting point.


 Axel