Skip to content

Conversation

@lisroach
Copy link
Contributor

@lisroach lisroach commented Feb 14, 2019

https://bugs.python.org/issue35132

It looks like it only happens when built with optimizations which means many of the tests don't run, possibly why this was missed.

I believe target() is unneeded here since 'data' would exist regardless of the type of the target. Perhaps @vstinner or @ambv have more insight.

https://bugs.python.org/issue35132

@vstinner
Copy link
Member

I believe target() is unneeded here since 'data' would exist regardless of the type of the target. Perhaps @vstinner or @ambv have more insight.

I bet that it depends on the gdb version, I'm waiting for the reply of the bug reporter: https://bugs.python.org/issue35132#msg335518

@vstinner
Copy link
Member

@lisroach: Would you mind to add a NEWS entry? Something like "Fix py-list and py-bt commands of python-gdb.py on gdb7."

@lisroach
Copy link
Contributor Author

lisroach commented Mar 4, 2019

Sure thing. Maybe it would be better to wrap it in a try: except, if target() fails we try again without target?

Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. You can merge it @lisroach, but this fix will need a backport to 3.7.

@lisroach lisroach merged commit 1ceb3a3 into python:master Mar 12, 2019
@miss-islington
Copy link
Contributor

Thanks @lisroach for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7.
🐍🍒⛏🤖

@bedevere-bot
Copy link

GH-12284 is a backport of this pull request to the 3.7 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 12, 2019
(cherry picked from commit 1ceb3a3)

Co-authored-by: Lisa Roach <lisaroach14@gmail.com>
vstinner pushed a commit that referenced this pull request Mar 12, 2019
…12284)

(cherry picked from commit 1ceb3a3)

Co-authored-by: Lisa Roach <lisaroach14@gmail.com>
@miss-islington
Copy link
Contributor

Thanks @lisroach for the PR 🌮🎉.. I'm working now to backport this PR to: 2.7.
🐍🍒⛏🤖

@miss-islington
Copy link
Contributor

Sorry, @lisroach, I could not cleanly backport this to 2.7 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker 1ceb3a3d172dcf0ddff38d5d6b559443ad065b84 2.7

@vstinner
Copy link
Member

Oh, this change is specific to Python 3 and doesn't make sense in Python 2 which doesn't have the "pep393" code.

@vstinner
Copy link
Member

Thanks @lisroach for the fix ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants