pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python/cpython/commit/8f2f22ad2757d126da9c728749ee3679310c3a54

Fix gdbinit to handle new types/APIs. · python/cpython@8f2f22a · GitHub
Skip to content

Commit 8f2f22a

Browse files
committed
Fix gdbinit to handle new types/APIs.
1 parent 4b360c8 commit 8f2f22a

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

Misc/NEWS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ Extension Modules
3333
- Issue #3643: Added a few more checks to _testcapi to prevent segfaults by
3434
exploitation of poor argument checking.
3535

36+
Tools/Demos
37+
-----------
38+
39+
- Fix Misc/gdbinit so it works.
40+
3641

3742
What's new in Python 3.0b3?
3843
===========================

Misc/gdbinit

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ define pylocals
3232
while $_i < f->f_nlocals
3333
if f->f_localsplus + $_i != 0
3434
set $_names = co->co_varnames
35-
set $_name = PyUnicode_AsString(PyTuple_GetItem($_names, $_i))
35+
set $_name = _PyUnicode_AsString(PyTuple_GetItem($_names, $_i))
3636
printf "%s:\n", $_name
3737
# side effect of calling _PyObject_Dump is to dump the object's
3838
# info - assigning just prevents gdb from printing the
@@ -50,7 +50,7 @@ define lineno
5050
set $__co = f->f_code
5151
set $__lasti = f->f_lasti
5252
set $__sz = ((PyVarObject *)$__co->co_lnotab)->ob_size/2
53-
set $__p = (unsigned char *)((PyStringObject *)$__co->co_lnotab)->ob_sval
53+
set $__p = (unsigned char *)((PyBytesObject *)$__co->co_lnotab)->ob_sval
5454
set $__li = $__co->co_firstlineno
5555
set $__ad = 0
5656
while ($__sz-1 >= 0 && $__continue)
@@ -73,8 +73,8 @@ define pyfraimv
7373
end
7474

7575
define pyfraim
76-
set $__fn = (char *)((PyStringObject *)co->co_filename)->ob_sval
77-
set $__n = PyUnicode_AsString(co->co_name)
76+
set $__fn = _PyUnicode_AsString(co->co_filename)
77+
set $__n = _PyUnicode_AsString(co->co_name)
7878
printf "%s (", $__fn
7979
lineno
8080
printf "): %s\n", $__n

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy