Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
50398a00
Commit
50398a00
authored
Aug 17, 2016
by
scoder
Committed by
GitHub
Aug 17, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1439 from jdemeyer/gdb_value_null
Replace "int(val) == 0" by "not val" for gdb.Value instances
parents
46fd1f5f
38cff471
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Cython/Debugger/libpython.py
Cython/Debugger/libpython.py
+2
-2
No files found.
Cython/Debugger/libpython.py
View file @
50398a00
...
...
@@ -286,7 +286,7 @@ class PyObjectPtr(object):
return
PyTypeObjectPtr
(
self
.
field
(
'ob_type'
))
def
is_null
(
self
):
return
0
==
int
(
self
.
_gdbval
)
return
not
self
.
_gdbval
def
is_optimized_out
(
self
):
'''
...
...
@@ -989,7 +989,7 @@ class PyFrameObjectPtr(PyObjectPtr):
if
self
.
is_optimized_out
():
return
None
f_trace
=
self
.
field
(
'f_trace'
)
if
int
(
f_trace
)
!=
0
:
if
f_trace
:
# we have a non-NULL f_trace:
return
self
.
f_lineno
else
:
...
...
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