Plotting From GDB

When debugging numerical codes it is often very convenient to plot an array or part of an array of numbers. The user defined commands in plot1d.gdb plot an expression that prints like {x1, ..., xN} using gnuplot. Add the code to your .gdbinit or add source plot1d.gdb to .gdbinit to make the commands available.

There are three commands with increasing number of options:

The commands write the following temporary files: __plot1d.dump, __plot1d.dat, Be careful that you do not have files of that name in you working directory, they will be overwritten!


None: PlottingFromGDB (last edited 2008-02-01 08:19:54 by e178068083)

All content (C) 2008 Free Software Foundation. For terms of use, redistribution, and modification, please see the WikiLicense page.