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
c8376239
Commit
c8376239
authored
Dec 03, 2010
by
Mark Florisson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Print warning if cygdb reads debug info and is using an interpreter without debug symbols
parent
45e16056
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
Cython/Debugger/Cygdb.py
Cython/Debugger/Cygdb.py
+12
-0
No files found.
Cython/Debugger/Cygdb.py
View file @
c8376239
...
@@ -15,6 +15,7 @@ import os
...
@@ -15,6 +15,7 @@ import os
import
sys
import
sys
import
glob
import
glob
import
tempfile
import
tempfile
import
textwrap
import
subprocess
import
subprocess
usage
=
"Usage: cygdb [PATH [GDB_ARGUMENTS]]"
usage
=
"Usage: cygdb [PATH [GDB_ARGUMENTS]]"
...
@@ -46,6 +47,17 @@ def make_command_file(path_to_debug_info, prefix_code='', no_import=False):
...
@@ -46,6 +47,17 @@ def make_command_file(path_to_debug_info, prefix_code='', no_import=False):
interpreter
=
open
(
path
).
read
()
interpreter
=
open
(
path
).
read
()
f
.
write
(
"file %s
\
n
"
%
interpreter
)
f
.
write
(
"file %s
\
n
"
%
interpreter
)
f
.
write
(
'
\
n
'
.
join
(
'cy import %s
\
n
'
%
fn
for
fn
in
debug_files
))
f
.
write
(
'
\
n
'
.
join
(
'cy import %s
\
n
'
%
fn
for
fn
in
debug_files
))
f
.
write
(
textwrap
.
dedent
(
'''
\
python
import sys
try:
gdb.lookup_type('PyModuleObject')
except RuntimeError:
sys.stderr.write(
'Python was not compiled with debug symbols (or it was '
'stripped). Some functionality may not work (properly).
\
\
n')
end
'''
))
f
.
close
()
f
.
close
()
...
...
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