cs01 / gdbgui

Browser-based frontend to gdb (gnu debugger). Add breakpoints, view the stack, visualize data structures, and more in C, C++, Go, Rust, and Fortran. Run gdbgui from the terminal and a new tab will open in your browser.
https://gdbgui.com
GNU General Public License v3.0
9.88k stars 499 forks source link

add option to record values for x/y plot each time a value changes w/o stopping #188

Open cs01 opened 6 years ago

cs01 commented 6 years ago

Currently the x/y plot of expressions over time only records new values when the program stops and gdbgui receives new values of expressions.

A new option should be added to allow the user to record all changes to values. This could be done using a combination of mi commands:

This flow will be used in https://github.com/cs01/gdbgui/issues/184, but probably with the a break-command of "elapsed-time" "continue". Does that sound right @wesleyyue?

WesleyYue commented 6 years ago

I finally had a chance to take a look at the gdb machine interface documentation and I think you're spot on. What you described should work.