diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-04-20 16:26:40 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-04-20 16:26:40 (GMT) |
commit | af1baabfce5efb5c48970942cd0be0832d0d0ed9 (patch) | |
tree | 0ba703f67018650624e5a5f60a8a81ddfd29b43b /Tools | |
parent | b4faa8ef9302429022ea16eafacf811b63153140 (diff) | |
parent | 19620c57d78f2175e326205f6b919ded834099b2 (diff) | |
download | cpython-af1baabfce5efb5c48970942cd0be0832d0d0ed9.zip cpython-af1baabfce5efb5c48970942cd0be0832d0d0ed9.tar.gz cpython-af1baabfce5efb5c48970942cd0be0832d0d0ed9.tar.bz2 |
Merge 3.5
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/gdb/libpython.py | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/Tools/gdb/libpython.py b/Tools/gdb/libpython.py index d8b87c1..75f1ccb 100755 --- a/Tools/gdb/libpython.py +++ b/Tools/gdb/libpython.py @@ -59,7 +59,6 @@ if sys.version_info[0] >= 3: # Those need to be refreshed as types (pointer sizes) may change when # gdb loads different executables - def _type_char_ptr(): return gdb.lookup_type('char').pointer() # char* @@ -68,10 +67,6 @@ def _type_unsigned_char_ptr(): return gdb.lookup_type('unsigned char').pointer() # unsigned char* -def _type_void_ptr(): - return gdb.lookup_type('void').pointer() # void* - - def _type_unsigned_short_ptr(): return gdb.lookup_type('unsigned short').pointer() @@ -79,16 +74,15 @@ def _type_unsigned_short_ptr(): def _type_unsigned_int_ptr(): return gdb.lookup_type('unsigned int').pointer() -# value computed later, see PyUnicodeObjectPtr.proxy() -_is_pep393 = None - def _sizeof_void_p(): - return _type_void_ptr().sizeof + return gdb.lookup_type('void').pointer().sizeof -Py_TPFLAGS_HEAPTYPE = (1 << 9) +# value computed later, see PyUnicodeObjectPtr.proxy() +_is_pep393 = None +Py_TPFLAGS_HEAPTYPE = (1 << 9) Py_TPFLAGS_LONG_SUBCLASS = (1 << 24) Py_TPFLAGS_LIST_SUBCLASS = (1 << 25) Py_TPFLAGS_TUPLE_SUBCLASS = (1 << 26) |