Files
binutils-gdb/gdb/python
Tom Tromey 4c2d19e3cd Introduce NoOpStringPrinter
We discovered that attempting to print a very large string-like array
would succeed on the CLI, but in DAP would cause the "variables"
request to fail with:

  value requires 67038491 bytes, which is more than max-value-size

This turns out to be a limitation in Value.format_string, which
de-lazy-ifies the value.

This patch fixes this problem by introducing a new NoOpStringPrinter
class, and then using it for string-like values.  This printer returns
a lazy string, which solves the problem.

Note there are some special cases where we do not want to return a
lazy string.  I've documented these in the code.  I considered making
gdb.Value.lazy_string handle these cases -- for example it could
return 'self' rather than a lazy string in some situations -- but this
approach was simpler.
2024-12-09 14:26:23 -07:00
..
2024-12-09 14:26:23 -07:00
2024-11-01 11:06:47 -06:00
2024-05-17 09:39:41 -06:00
2024-11-01 11:06:47 -06:00
2024-11-01 11:06:47 -06:00
2024-09-30 13:23:35 -06:00