summaryrefslogtreecommitdiff
path: root/cygdb.py
diff options
context:
space:
mode:
authorMark Florisson <markflorisson88@gmail.com>2010-10-31 22:34:38 +0100
committerMark Florisson <markflorisson88@gmail.com>2010-10-31 22:34:38 +0100
commit1327c85b930e6de3f7c4100a22d1c244ceb3e74d (patch)
treec3e8add818a4166a5b1ded5365e622a5bcc9ef4b /cygdb.py
parentf1e63d52189d9bfe148e420185cc864e6bdfc240 (diff)
downloadcython-1327c85b930e6de3f7c4100a22d1c244ceb3e74d.tar.gz
dispatch based on frame
python code stepping (for libpython and libcython) generic stepper class fix step-into functions have cygdb accept a '--' command line argument to disable automatic importing replace gdb.execute() with something that actually captures all output have 'cy break' break properly on line numbers
Diffstat (limited to 'cygdb.py')
-rw-r--r--cygdb.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/cygdb.py b/cygdb.py
index 7a7f51582..e573531d7 100644
--- a/cygdb.py
+++ b/cygdb.py
@@ -6,7 +6,14 @@ from Cython.Debugger import Cygdb as cygdb
if __name__ == '__main__':
if len(sys.argv) > 1:
- cygdb.main(path_to_debug_info=sys.argv[1],
- gdb_argv=sys.argv[2:])
+ path_to_debug_info = sys.argv[1]
+
+ no_import = False
+ if path_to_debug_info == '--':
+ no_import = True
+
+ cygdb.main(path_to_debug_info,
+ gdb_argv=sys.argv[2:],
+ no_import=no_import)
else:
cygdb.main()