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
44c19f64
Commit
44c19f64
authored
Aug 27, 2007
by
Neal Norwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get gdb macros working with unicode and PyVarObject change
parent
1e93f2b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Misc/gdbinit
Misc/gdbinit
+3
-3
No files found.
Misc/gdbinit
View file @
44c19f64
...
...
@@ -32,7 +32,7 @@ define pylocals
while
$_i
< f->f_nlocals
if
f->f_localsplus +
$_i
!=
0
set
$_names
=
co->co_varnames
set
$_name
=
Py
String
_AsString
(
PyTuple_GetItem
(
$_names
,
$_i
))
set
$_name
=
Py
Unicode
_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
...
...
@@ -49,7 +49,7 @@ define lineno
set
$__continue
=
1
set
$__co
=
f->f_code
set
$__lasti
=
f->f_lasti
set
$__sz
=
((
Py
String
Object
*
)
$__co
->co_lnotab
)
->ob_size/2
set
$__sz
=
((
Py
Var
Object
*
)
$__co
->co_lnotab
)
->ob_size/2
set
$__p
=
(
unsigned char
*
)((
PyStringObject
*
)
$__co
->co_lnotab
)
->ob_sval
set
$__li
=
$__co
->co_firstlineno
set
$__ad
=
0
...
...
@@ -74,7 +74,7 @@ end
define pyframe
set
$__fn
=
(
char
*
)((
PyStringObject
*
)
co->co_filename
)
->ob_sval
set
$__n
=
(
char
*
)((
PyStringObject
*
)
co->co_name
)
->ob_sval
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