epasveer / seer

Seer - a gui frontend to gdb
GNU General Public License v3.0
2.09k stars 66 forks source link

UX: Improve "copy to clipboard" #176

Closed epasveer closed 10 months ago

epasveer commented 10 months ago

Original comment:

"There should be a way to copy the "Value" column of any row in the "Logger" view. I think the natural place to add this would be a context menu that has some "Copy Value to Clipboard" entry. This allows me looking at it in something that has the display preferences that I may for whatever reason need."

Using a context menu is a good idea. I'll add this for the "Logger" view.

"Copy" will:

Other views may benifit from this.

epasveer commented 10 months ago

Now in "main".

I added it to the Logger, Tracker, and Register views.

ell1e commented 10 months ago

I got around to test this out today! However, it seems to copy out whatever Seer shows, not the actual value.

For example, it copies out stuff like '=' <repeats 13 times>, or the cut-off ending with ..., etc. I think at the very least it would need to copy out the full non-truncated value to be fully useful, even if it has these repeats X times etc changes, but ideally for byte arrays or C strings it would just copy it out like it actually looks like in memory. I guess for numbers I can see a point of copying out the decimal or hex representation, but for strings I really want the unaltered thing.

epasveer commented 10 months ago

Seer get's the value from gdb. It is gdb that is truncating the value. Gdb does have a switch to turn this on or off.

I'll look into this.