Fix cygdb argument parsing
authorMarc Abramowitz <marc@marc-abramowitz.com>
Sat, 12 Oct 2013 11:03:38 +0000 (04:03 -0700)
committerMarc Abramowitz <marc@marc-abramowitz.com>
Sat, 12 Oct 2013 11:03:38 +0000 (04:03 -0700)
Cython/Debugger/Cygdb.py

index 54577eb..334bf41 100644 (file)
@@ -82,12 +82,12 @@ def main(path_to_debug_info=None, gdb_argv=None, no_import=False):
     (options, args) = parser.parse_args()
     if path_to_debug_info is None:
         if len(args) > 1:
-            path_to_debug_info = args[1]
+            path_to_debug_info = args[0]
         else:
             path_to_debug_info = os.curdir
 
     if gdb_argv is None:
-        gdb_argv = args[2:]
+        gdb_argv = args[1:]
 
     if path_to_debug_info == '--':
         no_import = True