Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
8f2f22ad
Commit
8f2f22ad
authored
Aug 24, 2008
by
Neal Norwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix gdbinit to handle new types/APIs.
parent
4b360c8e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
Misc/NEWS
Misc/NEWS
+5
-0
Misc/gdbinit
Misc/gdbinit
+4
-4
No files found.
Misc/NEWS
View file @
8f2f22ad
...
...
@@ -33,6 +33,11 @@ Extension Modules
- Issue #3643: Added a few more checks to _testcapi to prevent segfaults by
exploitation of poor argument checking.
Tools/Demos
-----------
- Fix Misc/gdbinit so it works.
What's new in Python 3.0b3?
===========================
...
...
Misc/gdbinit
View file @
8f2f22ad
...
...
@@ -32,7 +32,7 @@ define pylocals
while
$_i
< f->f_nlocals
if
f->f_localsplus +
$_i
!=
0
set
$_names
=
co->co_varnames
set
$_name
=
PyUnicode_AsString
(
PyTuple_GetItem
(
$_names
,
$_i
))
set
$_name
=
_
PyUnicode_AsString
(
PyTuple_GetItem
(
$_names
,
$_i
))
printf
"%s:
\n
"
,
$_name
# side effect of calling _PyObject_Dump is to dump the object's
# info - assigning just prevents gdb from printing the
...
...
@@ -50,7 +50,7 @@ define lineno
set
$__co
=
f->f_code
set
$__lasti
=
f->f_lasti
set
$__sz
=
((
PyVarObject
*
)
$__co
->co_lnotab
)
->ob_size/2
set
$__p
=
(
unsigned char
*
)((
Py
String
Object
*
)
$__co
->co_lnotab
)
->ob_sval
set
$__p
=
(
unsigned char
*
)((
Py
Bytes
Object
*
)
$__co
->co_lnotab
)
->ob_sval
set
$__li
=
$__co
->co_firstlineno
set
$__ad
=
0
while
(
$__sz
-1
>=
0
&&
$__continue
)
...
...
@@ -73,8 +73,8 @@ define pyframev
end
define pyframe
set
$__fn
=
(
char
*
)((
PyStringObject
*
)
co->co_filename
)
->ob_sval
set
$__n
=
PyUnicode_AsString
(
co->co_name
)
set
$__fn
=
_PyUnicode_AsString
(
co->co_filename
)
set
$__n
=
_
PyUnicode_AsString
(
co->co_name
)
printf
"%s ("
,
$__fn
lineno
printf
"): %s
\n
"
,
$__n
...
...
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