diff options
author | Tom Tromey <tromey@adacore.com> | 2023-10-04 11:22:05 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-10-16 09:27:28 -0600 |
commit | ee81567c7cdf6aaae4b565c2afc3d4b798717177 (patch) | |
tree | cbee986f38d57d67a8152f95f7239e0185a7817f /gdb/NEWS | |
parent | 138c7d2661044d80dddc0445616aada039af1a95 (diff) | |
download | fsf-binutils-gdb-ee81567c7cdf6aaae4b565c2afc3d4b798717177.zip fsf-binutils-gdb-ee81567c7cdf6aaae4b565c2afc3d4b798717177.tar.gz fsf-binutils-gdb-ee81567c7cdf6aaae4b565c2afc3d4b798717177.tar.bz2 |
Handle gdb.LazyString in DAP
Andry pointed out that the DAP code did not properly handle
gdb.LazyString results from a pretty-printer, yielding:
TypeError: Object of type LazyString is not JSON serializable
This patch fixes the problem, partly with a small patch in varref.py,
but mainly by implementing tp_str for LazyString.
Reviewed-By: Eli Zaretskii <eliz@gnu.org>
Diffstat (limited to 'gdb/NEWS')
-rw-r--r-- | gdb/NEWS | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -358,6 +358,8 @@ show tui mouse-events gdb.Progspace that is either being added to GDB, or removed from GDB. + ** gdb.LazyString now implements the __str__ method. + *** Changes in GDB 13 * MI version 1 is deprecated, and will be removed in GDB 14. |