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
74af34d9
Commit
74af34d9
authored
Nov 28, 2010
by
mark
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set breakpoint pending on for libpython
parent
476af996
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
Cython/Debugger/libpython.py
Cython/Debugger/libpython.py
+11
-7
No files found.
Cython/Debugger/libpython.py
View file @
74af34d9
...
...
@@ -359,7 +359,7 @@ class PyObjectPtr(object):
if
tp_flags
&
Py_TPFLAGS_STRING_SUBCLASS
:
try
:
gdb
.
lookup_type
(
'PyBytesObject'
)
return
PyBytesObject
return
PyBytesObject
Ptr
except
RuntimeError
:
return
PyStringObjectPtr
if
tp_flags
&
Py_TPFLAGS_UNICODE_SUBCLASS
:
...
...
@@ -1686,7 +1686,7 @@ class PyNameEquals(gdb.Function):
if pyframe is None:
return None
return
str(getattr(pyframe, attr
))
return
getattr(pyframe, attr).proxyval(set(
))
return None
...
...
@@ -1872,8 +1872,9 @@ class GenericCodeStepper(gdb.Command):
if funcname not in self.static_breakpoints:
try:
gdb.Breakpoint('', gdb.BP_BREAKPOINT, internal=True)
except TypeError:
# gdb.Breakpoint does not take an 'internal' argument
except (AttributeError, TypeError):
# gdb.Breakpoint does not take an 'internal' argument, or
# gdb.Breakpoint does not exist.
breakpoint = self._break_func(funcname)
except RuntimeError:
# gdb.Breakpoint does take an 'internal' argument, use it
...
...
@@ -2061,7 +2062,7 @@ class GenericCodeStepper(gdb.Command):
return result
def step(self):
def step(self
, *args
):
return self.finish_executing(self._step())
def run(self, *args):
...
...
@@ -2090,7 +2091,9 @@ class PythonCodeStepper(GenericCodeStepper):
def get_source_line(self, frame):
try:
return self.pyframe(frame).current_line().rstrip()
pyframe = self.pyframe(frame)
return '%4d %s' % (pyframe.current_line_num(),
pyframe.current_line().rstrip())
except IOError, e:
return None
...
...
@@ -2129,6 +2132,7 @@ py_finish = PyFinish('py-finish')
py_run = PyRun('py-run')
py_cont = PyCont('py-cont')
gdb.execute('set breakpoint pending on')
py_step.init_breakpoints()
Py_single_input = 256
...
...
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