Message335518
> 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. |
|
Date |
User |
Action |
Args |
2019-02-14 11:39:48 | vstinner | set | recipients:
+ vstinner, lisroach, Dylan Cali |
2019-02-14 11:39:48 | vstinner | set | messageid: <1550144388.11.0.973138767141.issue35132@roundup.psfhosted.org> |
2019-02-14 11:39:48 | vstinner | link | issue35132 messages |
2019-02-14 11:39:48 | vstinner | create | |
|