<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Tools/gdb, branch v3.7.2</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Tools/gdb?h=v3.7.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Tools/gdb?h=v3.7.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2018-10-15T21:47:56Z</updated>
<entry>
<title>bpo-34989: python-gdb.py: fix current_line_num() (GH-9889)</title>
<updated>2018-10-15T21:47:56Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-10-15T21:47:56Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=fcea3ddc4a7e756fa8f182789e886ccd3d524484'/>
<id>urn:sha1:fcea3ddc4a7e756fa8f182789e886ccd3d524484</id>
<content type='text'>
python-gdb.py now handles errors on computing the line number
of a Python frame.

Changes:

* PyFrameObjectPtr.current_line_num() now catchs any Exception on
  calling addr2line(), instead of failing with a surprising "&lt;class
  'TypeError'&gt; 'FakeRepr' object is not subscriptable" error.
* All callers of current_line_num() now handle current_line_num()
  returning None.
* PyFrameObjectPtr.current_line() now also catchs IndexError on
  getting a line from the Python source file.
(cherry picked from commit 2e438cc2554495b28480a3ffe5cdf41b6ab823a0)

Co-authored-by: Victor Stinner &lt;vstinner@redhat.com&gt;</content>
</entry>
<entry>
<title>[3.7] bpo-32962: Backport python-gdb.py and test_gdb.py from master (GH-7710)</title>
<updated>2018-06-15T17:11:45Z</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2018-06-15T17:11:45Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ca4cb8492c643d1fcac2c5b749595ad5377673ab'/>
<id>urn:sha1:ca4cb8492c643d1fcac2c5b749595ad5377673ab</id>
<content type='text'>
* bpo-32962: python-gdb catchs ValueError on read_var() (GH-7692)

python-gdb now catchs ValueError on read_var(): when Python has no
debug symbols for example.

(cherry picked from commit 019d33b7a447e78057842332fb5d3bad01922122)

* bpo-32962: python-gdb catchs UnicodeDecodeError (GH-7693)

python-gdb now catchs UnicodeDecodeError exceptions when calling
string().

(cherry picked from commit d22fc0bc7de7882da204abe50884bbde2da4f9e7)

* bpo-32962: Fix test_gdb failure in debug build with -mcet -fcf-protection -O0 (GH-6754)

When Python is built with the intel control-flow protection flags,
-mcet -fcf-protection, gdb is not able to read the stack without
actually jumping inside the function. This means an extra
'next' command is required to make the $pc (program counter)
enter the function and make the stack of the function exposed to gdb.

(cherry picked from commit 9b7c74ca32d1bec7128d550a9ab1b2ddc7046287)</content>
</entry>
<entry>
<title>bpo-33312: update Tools/gdb/libpython.py to match. (GH-6549)</title>
<updated>2018-04-20T20:02:30Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-04-20T20:02:30Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=11659d00b9185c8f02ea6b642fa475a80e21f1a9'/>
<id>urn:sha1:11659d00b9185c8f02ea6b642fa475a80e21f1a9</id>
<content type='text'>
(cherry picked from commit 53f67d401df40486fd0fb8fbcf9da725cd37290c)</content>
</entry>
<entry>
<title>bpo-30983: [gdb] Fix py-bt, etc. for non-debug shared builds (#3153)</title>
<updated>2017-08-21T23:40:29Z</updated>
<author>
<name>Łukasz Langa</name>
<email>lukasz@langa.pl</email>
</author>
<published>2017-08-21T23:40:29Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5fe59f8e3a0a56a155c18f9d581205ec533764b6'/>
<id>urn:sha1:5fe59f8e3a0a56a155c18f9d581205ec533764b6</id>
<content type='text'>
PEP 523 introduced _PyEval_EvalFrameDefault which inlines PyEval_EvalFrameEx on
non-debug shared builds.  This breaks the ability to use py-bt, py-up, and
a few other Python-specific gdb integrations.

This patch fixes the problem by only looking for _PyEval_EvalFrameDefault
frames.

test_gdb passes on both a debug and a non-debug build.

Original patch by Bruno "Polaco" Penteado.</content>
</entry>
<entry>
<title>bpo-30983: Revert changes which broke most buildbots (#3100)</title>
<updated>2017-08-16T09:02:05Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2017-08-16T09:02:05Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7cc33998b83df6ab8cf2c1afe16a61ee232e39ec'/>
<id>urn:sha1:7cc33998b83df6ab8cf2c1afe16a61ee232e39ec</id>
<content type='text'>
* Revert "Add Bruno Penteado to ACKS (#3091)"

This reverts commit f978405b3f092e4005b92ba1dbaab15f609b3bb0.

* Revert "bpo-30983: eval frame rename in pep 0523 broke gdb's python extension (#2803)"

This reverts commit 2e0f4db114424a00354eab889ba8f7334a2ab8f0.
</content>
</entry>
<entry>
<title>bpo-30983: eval frame rename in pep 0523 broke gdb's python extension (#2803)</title>
<updated>2017-08-14T22:14:17Z</updated>
<author>
<name>Bruno "Polaco" Penteado</name>
<email>polaco@gmail.com</email>
</author>
<published>2017-08-14T22:14:17Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2e0f4db114424a00354eab889ba8f7334a2ab8f0'/>
<id>urn:sha1:2e0f4db114424a00354eab889ba8f7334a2ab8f0</id>
<content type='text'>
pep 0523 renames PyEval_EvalFrameEx to _PyEval_EvalFrameDefault while the gdb python extension only looks for PyEval_EvalFrameEx to understand if it is dealing with a frame.

Final effect is that attaching gdb to a python3.6 process doesnt resolve python objects. Eg. py-list and py-bt dont work properly.

This patch fixes that. Tested locally on python3.6</content>
</entry>
<entry>
<title>bpo-30296 Remove unnecessary tuples, lists, sets, and dicts (#1489)</title>
<updated>2017-05-18T14:35:54Z</updated>
<author>
<name>Jon Dufresne</name>
<email>jon.dufresne@gmail.com</email>
</author>
<published>2017-05-18T14:35:54Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=3972628de3d569c88451a2a176a1c94d8822b8a6'/>
<id>urn:sha1:3972628de3d569c88451a2a176a1c94d8822b8a6</id>
<content type='text'>
* Replaced list(&lt;generator expression&gt;) with list comprehension
* Replaced dict(&lt;generator expression&gt;) with dict comprehension
* Replaced set(&lt;list literal&gt;) with set literal
* Replaced builtin func(&lt;list comprehension&gt;) with func(&lt;generator
  expression&gt;) when supported (e.g. any(), all(), tuple(), min(), &amp;
  max())</content>
</entry>
<entry>
<title>Fixes bpo-29680: Older gdb does not have gdb.error. (#363)</title>
<updated>2017-03-01T18:16:23Z</updated>
<author>
<name>Lev Abalkin</name>
<email>abalkin@users.noreply.github.com</email>
</author>
<published>2017-03-01T18:16:23Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=661ca8843fed1183e38db06e52d59ac300bf1c2a'/>
<id>urn:sha1:661ca8843fed1183e38db06e52d59ac300bf1c2a</id>
<content type='text'>
This change is required to make python-dbg.py compatible with GDB versions before 7.3.</content>
</entry>
<entry>
<title>Issue #29263: LOAD_METHOD support for C methods</title>
<updated>2017-02-02T22:43:03Z</updated>
<author>
<name>INADA Naoki</name>
<email>songofacandy@gmail.com</email>
</author>
<published>2017-02-02T22:43:03Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5566bbb8d563646d83e8172410fa0c085e8233b1'/>
<id>urn:sha1:5566bbb8d563646d83e8172410fa0c085e8233b1</id>
<content type='text'>
Calling builtin method is at most 10% faster.
</content>
</entry>
<entry>
<title>python-gdb.py supports method-wrapper</title>
<updated>2017-02-01T15:29:54Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2017-02-01T15:29:54Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=611083331d534481ca7956a376e38fb0e9ef3854'/>
<id>urn:sha1:611083331d534481ca7956a376e38fb0e9ef3854</id>
<content type='text'>
Issue #29367: python-gdb.py now supports also method-wrapper (wrapperobject)
objects.
</content>
</entry>
</feed>
