From 1a6899d3fa8162c521dcd1db58a5f46a28811e68 Mon Sep 17 00:00:00 2001 From: Lisa Roach Date: Mon, 11 Mar 2019 20:21:25 -0700 Subject: [PATCH] bpo-35132: Fixes missing target in gdb pep0393 check. (GH-11848) (cherry picked from commit 1ceb3a3d172dcf0ddff38d5d6b559443ad065b84) Co-authored-by: Lisa Roach --- .../next/Tools-Demos/2019-03-04-02-09-09.bpo-35132.1R_pnL.rst | 1 + Tools/gdb/libpython.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 Misc/NEWS.d/next/Tools-Demos/2019-03-04-02-09-09.bpo-35132.1R_pnL.rst diff --git a/Misc/NEWS.d/next/Tools-Demos/2019-03-04-02-09-09.bpo-35132.1R_pnL.rst b/Misc/NEWS.d/next/Tools-Demos/2019-03-04-02-09-09.bpo-35132.1R_pnL.rst new file mode 100644 index 00000000000000..d73452df429b4a --- /dev/null +++ b/Misc/NEWS.d/next/Tools-Demos/2019-03-04-02-09-09.bpo-35132.1R_pnL.rst @@ -0,0 +1 @@ +Fix py-list and py-bt commands of python-gdb.py on gdb7. \ No newline at end of file diff --git a/Tools/gdb/libpython.py b/Tools/gdb/libpython.py index bfaa9403b78764..d744cab7642a75 100755 --- a/Tools/gdb/libpython.py +++ b/Tools/gdb/libpython.py @@ -1178,7 +1178,7 @@ def char_width(self): def proxyval(self, visited): global _is_pep393 if _is_pep393 is None: - fields = gdb.lookup_type('PyUnicodeObject').target().fields() + fields = gdb.lookup_type('PyUnicodeObject').fields() _is_pep393 = 'data' in [f.name for f in fields] if _is_pep393: # Python 3.3 and newer pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy