Commit 0500b4fe authored by Jiajun Huang's avatar Jiajun Huang

same in the `cy break` command

parent c2e5edbd
...@@ -842,7 +842,9 @@ class CyBreak(CythonCommand): ...@@ -842,7 +842,9 @@ class CyBreak(CythonCommand):
gdb.execute('break %s' % func.pf_cname) gdb.execute('break %s' % func.pf_cname)
def invoke(self, function_names, from_tty): def invoke(self, function_names, from_tty):
argv = string_to_argv(function_names.encode('UTF-8')) if isinstance(function_names, BYTES):
function_names = function_names.decode(_filesystemencoding)
argv = string_to_argv(function_names)
if function_names.startswith('-p'): if function_names.startswith('-p'):
argv = argv[1:] argv = argv[1:]
python_breakpoints = True python_breakpoints = True
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment