Commit 7d476b48 authored by Marc Abramowitz's avatar Marc Abramowitz

Fix cygdb argument parsing

parent 06363710
...@@ -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
......
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