This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Dylan Cali, lisroach, vstinner
Date 2019-02-14.11:39:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1550144388.11.0.973138767141.issue35132@roundup.psfhosted.org>
In-reply-to
Content
> Distro: Linux Mint 18.2 Sonya

Hum, Dylan: what is your gdb version?

On Fedora 29 with gdb 8.2-6.fc29, it seems like .target() is useless:

$ gdb ./python
GNU gdb (GDB) Fedora 8.2-6.fc29
...
(gdb) python print([field.name for field in gdb.lookup_type('PyUnicodeObject').target().fields()])
['_base', 'data']

(gdb) python print([field.name for field in gdb.lookup_type('PyUnicodeObject').fields()])
['_base', 'data']

I tested on a Python compiled manually from source, I ran my test in the directory of Python source  code.

I also tested on /usr/bin/python3 (system Python), same behavior.
History
Date User Action Args
2019-02-14 11:39:48vstinnersetrecipients: + vstinner, lisroach, Dylan Cali
2019-02-14 11:39:48vstinnersetmessageid: <1550144388.11.0.973138767141.issue35132@roundup.psfhosted.org>
2019-02-14 11:39:48vstinnerlinkissue35132 messages
2019-02-14 11:39:48vstinnercreate