
This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.
Created on2017-01-25 09:29 byvstinner, last changed2022-04-11 14:58 byadmin. This issue is nowclosed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| gdb_wrapper_call.patch | vstinner,2017-01-25 09:29 | review | ||
| Pull Requests | |||
|---|---|---|---|
| URL | Status | Linked | Edit |
| PR 552 | closed | dstufft,2017-03-31 16:36 | |
| PR 7726 | merged | vstinner,2018-06-15 21:38 | |
| Messages (9) | |||
|---|---|---|---|
| msg286233 -(view) | Author: STINNER Victor (vstinner)*![]() | Date: 2017-01-25 09:29 | |
python-gdb.py handles various Python calls, but not descriptors. Attached patch adds code to display calls to wrapperobject objects.The patch adds the first "<method-wrapper ...>" line of the traceback:---(gdb) py-btTraceback (most recent call first): <method-wrapper '__init__' of CodecInfo object at 0x7ffff7e9d7a8> File "/home/haypo/prog/python/git_cpython/Lib/encodings/utf_8.py", line 41, in getregentry streamwriter=StreamWriter, File "/home/haypo/prog/python/git_cpython/Lib/encodings/__init__.py", line 122, in search_function entry = getregentry()---I wrote this patch while working on the issue#29358. Object instanciation is full of wrappers. A better debugger helps to me understand my bugs ;-)Example to get such tracecback:---haypo@selma$ gdb -args ./python -m test -v test_sys(gdb) b wrapper_call(gdb) run(gdb) py-btTraceback (most recent call first): <method-wrapper '__init__' of _EnumDict object at 0x7ffff023d388> File "/home/haypo/prog/python/default/Lib/enum.py", line 66, in __init__ super().__init__() File "/home/haypo/prog/python/default/Lib/enum.py", line 117, in __prepare__ enum_dict = _EnumDict() <built-in method __build_class__ of module object at remote 0x7ffff7f46c58> File "/home/haypo/prog/python/default/Lib/enum.py", line 509, in <module> class Enum(metaclass=EnumMeta): <built-in method exec of module object at remote 0x7ffff7f46c58> File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed (...)---I guess that the next step is to write a test ;-) | |||
| msg286638 -(view) | Author: Roundup Robot (python-dev)![]() | Date: 2017-02-01 15:30 | |
New changeset54fa95b19fae by Victor Stinner in branch 'default':python-gdb.py supports method-wrapperhttps://hg.python.org/cpython/rev/54fa95b19fae | |||
| msg286640 -(view) | Author: Roundup Robot (python-dev)![]() | Date: | |
New changeset30867b703933d6ba30bc5f609a1a2337925ead33 by Victor Stinner in branch 'master':python-gdb.py supports method-wrapperhttps://github.com/python/cpython/commit/30867b703933d6ba30bc5f609a1a2337925ead33 | |||
| msg286641 -(view) | Author: Roundup Robot (python-dev)![]() | Date: 2017-02-01 16:00 | |
New changesetffd2e5f9256a by Victor Stinner in branch 'default':Make test_gdb.test_wrapper_call() make reliablehttps://hg.python.org/cpython/rev/ffd2e5f9256a | |||
| msg286655 -(view) | Author: Roundup Robot (python-dev)![]() | Date: | |
New changeset88835e6022a81d8107a296c9f6e5f16c7d39e27a by Victor Stinner in branch 'master':Make test_gdb.test_wrapper_call() make reliablehttps://github.com/python/cpython/commit/88835e6022a81d8107a296c9f6e5f16c7d39e27a | |||
| msg286665 -(view) | Author: Roundup Robot (python-dev)![]() | Date: 2017-02-01 17:26 | |
New changesetefaf32ac89ec by Victor Stinner in branch 'default':Fix test_gdb.test_wrapper_call() on Python 2https://hg.python.org/cpython/rev/efaf32ac89ec | |||
| msg286671 -(view) | Author: Roundup Robot (python-dev)![]() | Date: | |
New changesetda331c7d12c4648b9734ebb07e9f722c8478d269 by Victor Stinner in branch 'master':Fix test_gdb.test_wrapper_call() on Python 2https://github.com/python/cpython/commit/da331c7d12c4648b9734ebb07e9f722c8478d269 | |||
| msg293584 -(view) | Author: STINNER Victor (vstinner)*![]() | Date: 2017-05-12 22:21 | |
New changesetd05f7fdf6cf77724bd3064fb5a0846ef5cfe0c88 by Victor Stinner in branch '3.6':[3.6]bpo-30345: Update test_gdb.py and python-gdb.py from master (#1549)https://github.com/python/cpython/commit/d05f7fdf6cf77724bd3064fb5a0846ef5cfe0c88 | |||
| msg319680 -(view) | Author: STINNER Victor (vstinner)*![]() | Date: 2018-06-15 21:59 | |
New changesete36f94f204f3257a206a7766464a94230337fd18 by Victor Stinner in branch '2.7':bpo-32962: Backport python-gdb.py and test_gdb.py from master (GH-7726)https://github.com/python/cpython/commit/e36f94f204f3257a206a7766464a94230337fd18 | |||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:58:42 | admin | set | github: 73553 |
| 2018-06-15 21:59:59 | vstinner | set | messages: +msg319680 |
| 2018-06-15 21:38:42 | vstinner | set | pull_requests: +pull_request7340 |
| 2017-05-12 22:21:53 | vstinner | set | messages: +msg293584 |
| 2017-03-31 16:36:08 | dstufft | set | pull_requests: +pull_request844 |
| 2017-02-01 18:00:19 | python-dev | set | messages: +msg286671 |
| 2017-02-01 17:26:52 | python-dev | set | messages: +msg286665 |
| 2017-02-01 17:00:21 | python-dev | set | messages: +msg286655 |
| 2017-02-01 16:00:56 | python-dev | set | messages: +msg286641 |
| 2017-02-01 16:00:50 | python-dev | set | stage: resolved |
| 2017-02-01 16:00:50 | python-dev | set | resolution: fixed |
| 2017-02-01 16:00:50 | python-dev | set | status: open -> closed |
| 2017-02-01 16:00:50 | python-dev | set | messages: +msg286640 |
| 2017-02-01 15:30:10 | python-dev | set | nosy: +python-dev messages: +msg286638 |
| 2017-01-25 09:29:36 | vstinner | create | |