You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@sobolevn Discussing what to do with Misc/gdbinit could have been a 'discuss' thread, but perhaps you hope to followup with PR. I have some concrete ideas based on its current content.
@warsaw You contributed this file in 2001. @gpshead I believe you are the only other active coredev who made substantial contributions to this file.
In 2020, you added
# NOTE: If you have gdb 7 or later, it supports debugging of Python directly
# with embedded macros that you may find superior to what is in here.
# See Tools/gdb/libpython.py and http://bugs.python.org/issue8032.
If now, 13 years later, everyone uses a version of gdb that obsoletes this file, then we might delete it. End of issue.
If not, I think it should be moved to Tools/gdb, along side its current only content, libpython.py. (Can this be done without losing blame history? Which I obviously used.) This should make it more discoverable.
The NOTE: (above) should by expanded to say that some things might not work and that PR fixes would be welcome (if true ;-). I think a last revision date should be added here or maybe to individual macros (see below).
The macro that uses co_lnotab should get a note with its expected drop dead version.
@smontanaro In 2010 you added define pystack with this note.
# Note: The name of the main interpreter function and the function which
# follow it has changed over time. This version of pystack works with this
# version of Python. If you try using it with older or newer versions of
# the interpreter you may will have to change the functions you compare with
# $pc.
this version of Python should have been spelled out (2.7? 3.0?). Does the macro need an update now?
Activity
terryjreedy commentedon Mar 18, 2023
@sobolevn Discussing what to do with Misc/gdbinit could have been a 'discuss' thread, but perhaps you hope to followup with PR. I have some concrete ideas based on its current content.
@warsaw You contributed this file in 2001.
@gpshead I believe you are the only other active coredev who made substantial contributions to this file.
In 2020, you added
If now, 13 years later, everyone uses a version of gdb that obsoletes this file, then we might delete it. End of issue.
If not, I think it should be moved to Tools/gdb, along side its current only content, libpython.py. (Can this be done without losing blame history? Which I obviously used.) This should make it more discoverable.
The
NOTE:(above) should by expanded to say that some things might not work and that PR fixes would be welcome (if true ;-). I think a last revision date should be added here or maybe to individual macros (see below).The macro that uses co_lnotab should get a note with its expected drop dead version.
@smontanaro In 2010 you added
define pystackwith this note.this version of Pythonshould have been spelled out (2.7? 3.0?). Does the macro need an update now?smontanaro commentedon Mar 18, 2023
@terryjreedy I no longer use it, but can retrieve it from wherever if I change my mind. GDB's better Python support works for me.
warsaw commentedon Mar 19, 2023
Unless @gpshead or perhaps @vstinner (or @davidmalcolm) have any objections, let's delete it.
sobolevn commentedon Mar 20, 2023
As far as I know, Victor is not active right now. I will wait for @gpshead's feedback before sending a PR :)
davidmalcolm commentedon Mar 20, 2023
FWIW I have no objections to removing gdbinit, but I haven't done CPython work in a decade, so my opinion here is probably irrelevant.
gpshead commentedon Mar 20, 2023
I'll approve any PR removing it.
pythongh-102809: Remove `Misc/gdbinit`
gh-102809: Remove `Misc/gdbinit` (#102854)
gpshead commentedon Mar 20, 2023
removed!
pythongh-102809: Remove `Misc/gdbinit` (python#102854)
pythongh-102809: Remove gdbinit mentioned in README since gdbinit was…
pythongh-102809: Remove gdbinit mentioned in README since gdbinit was…
pythongh-102809: Remove gdbinit mentioned in README since gdbinit was…
gh-102809: Remove gdbinit mention in Misc/README (#103269)
pythongh-102809: Remove `Misc/gdbinit` (python#102854)
pythongh-102809: Remove gdbinit mention in Misc/README (python#103269)
gh-102809: No longer mention `Misc/gdbinit` in the code (#143980)
pythongh-102809: No longer mention `Misc/gdbinit` in the code (python…
pythongh-102809: No longer mention `Misc/gdbinit` in the code (python…
[3.13] gh-102809: No longer mention `Misc/gdbinit` in the code (GH-14…
[3.14] gh-102809: No longer mention `Misc/gdbinit` in the code (GH-14…
pythongh-102809: No longer mention `Misc/gdbinit` in the code (python…