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
Boxiang Sun
cython
Commits
e085197b
Commit
e085197b
authored
Oct 21, 2013
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #259 from msabramo/cygdb-tweak-args
Fix cygdb argument parsing
parents
e471e51a
d03f1f6a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Cython/Debugger/Cygdb.py
Cython/Debugger/Cygdb.py
+3
-3
No files found.
Cython/Debugger/Cygdb.py
View file @
e085197b
...
@@ -62,7 +62,7 @@ def make_command_file(path_to_debug_info, prefix_code='', no_import=False):
...
@@ -62,7 +62,7 @@ def make_command_file(path_to_debug_info, prefix_code='', no_import=False):
return
tempfilename
return
tempfilename
usage
=
"Usage: cygdb [options] [PATH [GDB_ARGUMENTS]]"
usage
=
"Usage: cygdb [options] [PATH [
--
GDB_ARGUMENTS]]"
def
main
(
path_to_debug_info
=
None
,
gdb_argv
=
None
,
no_import
=
False
):
def
main
(
path_to_debug_info
=
None
,
gdb_argv
=
None
,
no_import
=
False
):
"""
"""
...
@@ -82,12 +82,12 @@ def main(path_to_debug_info=None, gdb_argv=None, no_import=False):
...
@@ -82,12 +82,12 @@ def main(path_to_debug_info=None, gdb_argv=None, no_import=False):
(
options
,
args
)
=
parser
.
parse_args
()
(
options
,
args
)
=
parser
.
parse_args
()
if
path_to_debug_info
is
None
:
if
path_to_debug_info
is
None
:
if
len
(
args
)
>
1
:
if
len
(
args
)
>
1
:
path_to_debug_info
=
args
[
1
]
path_to_debug_info
=
args
[
0
]
else
:
else
:
path_to_debug_info
=
os
.
curdir
path_to_debug_info
=
os
.
curdir
if
gdb_argv
is
None
:
if
gdb_argv
is
None
:
gdb_argv
=
args
[
2
:]
gdb_argv
=
args
[
1
:]
if
path_to_debug_info
==
'--'
:
if
path_to_debug_info
==
'--'
:
no_import
=
True
no_import
=
True
...
...
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