Skip to content

gh-102809: No longer mention Misc/gdbinit in the code - #143980

Merged
vstinner merged 1 commit into
python:mainfrom
johnslavik:farewell-gdbinit
Jan 19, 2026
Merged

gh-102809: No longer mention Misc/gdbinit in the code#143980
vstinner merged 1 commit into
python:mainfrom
johnslavik:farewell-gdbinit

Conversation

@johnslavik

@johnslavikjohnslavik commented Jan 18, 2026

Copy link
Copy Markdown
Member

Misc/gdbinit was removed in GH-102854 (3.12.0a7).

@johnslavikjohnslavik added skip news needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes labels Jan 18, 2026
@johnslavikjohnslavik changed the title No longer mention Misc/gdbinit in PyObject_Dump code docNo longer mention Misc/gdbinit in the codeJan 18, 2026

@StanFromIrelandStanFromIreland left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Or fix it like this one was done?

- GDB 7 or later. (For earlier versions of GDB, see ``Misc/gdbinit`` in the

@johnslavik

johnslavik commented Jan 18, 2026

Copy link
Copy Markdown
MemberAuthor

Or fix it like this one was done?

- GDB 7 or later. (For earlier versions of GDB, see ``Misc/gdbinit`` in the

I'm not sure. This comment remains on 3.10, 3.11 and 3.12 branches, would including Misc/gdbinit again be helpful?
Or do you mean mentioning GDB 7?
Or do you have in mind some other specific idea of improving this comment?

We could direct the reader to Doc/howto/gdb_helpers.rst maybe?

@StanFromIreland

Copy link
Copy Markdown
Member

Oh I only have the one line shown, I was referring to: "see Misc/gdbinit in the sources of Python 3.11 or earlier."

@johnslavik

johnslavik commented Jan 18, 2026

Copy link
Copy Markdown
MemberAuthor

Thanks. Personally, I don't find it necessary, because the 3.11 and earlier branches still will include the mention of Misc/gdbinit after we merge this.

@StanFromIreland

Copy link
Copy Markdown
Member

Why do those branches matter? The comment is for people on the branches where the file doesn't exist, no?

@johnslavik

Copy link
Copy Markdown
MemberAuthor

Why do those branches matter? The comment is for people on the branches where the file doesn't exist, no?

I was thinking that mentioning Misc/gdbinit would not be useful to people on branches that don't contain the file, because they wouldn't need nor be able to use the file.

If they needed to debug 3.11, they would check it out and the comment would be there.
Unless I am missing something?

@johnslavik

Copy link
Copy Markdown
MemberAuthor

Do you have an example of when this is useful for someone debugging in the 3.13-3.15 branches only?

@ZeroIntensity

Copy link
Copy Markdown
Member

Yeah, I agree with Bartosz here. The mention in the docs was added afterMisc/gdbinit was removed, so I think it's intentional to keep that one.

@vstinnervstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@vstinnervstinner changed the title No longer mention Misc/gdbinit in the codegh-102809: No longer mention Misc/gdbinit in the codeJan 19, 2026
@vstinner
vstinner merged commit f84ea11 into python:mainJan 19, 2026
61 checks passed
@miss-islington-app

Copy link
Copy Markdown

Thanks @johnslavik for the PR, and @vstinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 19, 2026
…GH-143980)
Fix misleading comment on `PyObject_Dump`.
(cherry picked from commit f84ea11)
Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 19, 2026
…GH-143980)
Fix misleading comment on `PyObject_Dump`.
(cherry picked from commit f84ea11)
Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
@bedevere-app

Copy link
Copy Markdown

GH-144044 is a backport of this pull request to the 3.14 branch.

@bedevere-appbedevere-appBot removed the needs backport to 3.14 bugs and security fixes label Jan 19, 2026
@bedevere-app

Copy link
Copy Markdown

GH-144045 is a backport of this pull request to the 3.13 branch.

@bedevere-appbedevere-appBot removed the needs backport to 3.13 bugs and security fixes label Jan 19, 2026
@vstinner

Copy link
Copy Markdown
Member

Merged, thanks for this cleanup.

@johnslavik

Copy link
Copy Markdown
MemberAuthor

@vstinner, thanks for the review and for linking the issue!

vstinner pushed a commit that referenced this pull request Jan 19, 2026
…3980) (#144045)
gh-102809: No longer mention `Misc/gdbinit` in the code (GH-143980)
Fix misleading comment on `PyObject_Dump`.
(cherry picked from commit f84ea11)
Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
vstinner pushed a commit that referenced this pull request Jan 19, 2026
…3980) (#144044)
gh-102809: No longer mention `Misc/gdbinit` in the code (GH-143980)
Fix misleading comment on `PyObject_Dump`.
(cherry picked from commit f84ea11)
Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
thunder-coding pushed a commit to thunder-coding/cpython that referenced this pull request Feb 15, 2026
@johnslavik
johnslavik deleted the farewell-gdbinit branch April 20, 2026 23:18
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@johnslavik@StanFromIreland@ZeroIntensity@vstinner