Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
af1baabf
Commit
af1baabf
authored
Apr 20, 2016
by
Victor Stinner
Browse files
Options
Browse Files
Download
Plain Diff
Merge 3.5
parents
b4faa8ef
19620c57
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
Tools/gdb/libpython.py
Tools/gdb/libpython.py
+4
-10
No files found.
Tools/gdb/libpython.py
View file @
af1baabf
...
...
@@ -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_pt
r
().
sizeof
return
gdb
.
lookup_type
(
'void'
).
pointe
r
().
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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment