Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document the removal the usage of the C stack in Python to Python calls #89480

Closed
markshannon opened this issue Sep 29, 2021 · 11 comments
Closed
Assignees
Labels
3.11 only security fixes deferred-blocker docs Documentation in the Doc dir type-feature A feature request or enhancement

Comments

@markshannon
Copy link
Member

markshannon commented Sep 29, 2021

BPO 45317
Nosy @markshannon, @pablogsal
PRs
  • GH-89480: Document motivation, design and implementation of 3.11 frame stack. #32304
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/pablogsal'
    closed_at = None
    created_at = <Date 2021-09-29.11:40:33.214>
    labels = ['3.11', 'type-feature', 'deferred-blocker', 'docs']
    title = 'Document the removal the usage of the C stack in Python to Python calls'
    updated_at = <Date 2022-04-04.14:10:02.227>
    user = 'https://github.com/markshannon'

    bugs.python.org fields:

    activity = <Date 2022-04-04.14:10:02.227>
    actor = 'Mark.Shannon'
    assignee = 'pablogsal'
    closed = False
    closed_date = None
    closer = None
    components = ['Documentation']
    creation = <Date 2021-09-29.11:40:33.214>
    creator = 'Mark.Shannon'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 45317
    keywords = ['patch']
    message_count = 3.0
    messages = ['402850', '402853', '414655']
    nosy_count = 3.0
    nosy_names = ['docs@python', 'Mark.Shannon', 'pablogsal']
    pr_nums = ['32304']
    priority = 'deferred blocker'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue45317'
    versions = ['Python 3.11']

    Linked PRs

    @markshannon
    Copy link
    Member Author

    Assuming that bpo-45256 is implemented, we will need to document it.

    I'm opening a separate issue, so this doesn't get lost in the midst of 45256.

    We need to:

    Document the changes to gdb. Possibly at https://wiki.python.org/moin/DebuggingWithGdb, or in the main docs.

    Add a "what's new" entry explaining what the impact of this change is.

    @markshannon markshannon added release-blocker 3.11 only security fixes docs Documentation in the Doc dir type-feature A feature request or enhancement labels Sep 29, 2021
    @markshannon markshannon added release-blocker 3.11 only security fixes docs Documentation in the Doc dir type-feature A feature request or enhancement labels Sep 29, 2021
    @pablogsal
    Copy link
    Member

    I will prepare a PR to also document the gdb helpers in the main docs. The wiki is insuficient.

    @pablogsal pablogsal assigned pablogsal and unassigned markshannon Sep 29, 2021
    @markshannon
    Copy link
    Member Author

    I don't think this needs to block the alpha release

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    @vstinner
    Copy link
    Member

    vstinner commented May 6, 2022

    What's New in Python 3.11 now says:

    Most Python function calls now consume no C stack space.

    https://docs.python.org/dev/whatsnew/3.11.html#inlined-python-function-calls

    Can this issue be claused?

    @pablogsal:

    I will prepare a PR to also document the gdb helpers in the main docs. The wiki is insuficient.

    It seems like this part was not done yet.

    By the way, having a documentation about debugging Python in gdb would be great. I can help writing it if you want!

    @pablogsal
    Copy link
    Member

    ⚠️ This issue has been updated from 'deferred-blocker' to 'release blocker' as we are past beta1. This issue will block the next release (Python 3.11.0 beta 2). ⚠️

    @pablogsal
    Copy link
    Member

    It seems like this part was not done yet.

    By the way, having a documentation about debugging Python in gdb would be great. I can help writing it if you want!

    I have something prepared but I still need time to do a PR :)

    @JelleZijlstra
    Copy link
    Member

    This is still marked a deferred blocker. @pablogsal are you planning on writing new GDB docs, and should those docs block any release?

    @encukou
    Copy link
    Member

    encukou commented Feb 14, 2024

    @pablogsal, if you share the draft, in whatever state it is, I can finish it.

    @pablogsal
    Copy link
    Member

    @pablogsal, if you share the draft, in whatever state it is, I can finish it.

    Will try to share it today after the SC meeting

    pablogsal added a commit to pablogsal/cpython that referenced this issue Feb 19, 2024
    @pablogsal
    Copy link
    Member

    @encukou Opened a PR here with what I had: #115657

    Please, feel free to modify it

    encukou added a commit that referenced this issue Feb 23, 2024
    Content adapted from https://devguide.python.org/development-tools/gdb/#
    and https://wiki.python.org/moin/DebuggingWithGdb.
    
    The original content on the Wiki page came from gdb debug help used by
    the Launchpad (https://launchpad.net/) team. 
    Thanks to Anatoly Techtonik and user `rmf` for substantial improvements to the Wiki page.
    
    
    The history of the Devguide page follows
    (with log entries expanded for major content contributions):
    
    Hugo van Kemenade, Sat Dec 30 21:22:04 2023 +0200
    Hugo van Kemenade, Fri Dec 8 12:04:32 2023 +0200
    Erlend E. Aasland & Hugo van Kemenade, Tue Aug 8 22:05:34 2023 +0200
    Satish Mishra, Sat Feb 11 13:54:57 2023 +0530
    Hugo van Kemenade, Fri Dec 23 17:33:33 2022 +0200
    Skip Montanaro, Hugo, Erlend, & Ezio, Fri Nov 4 05:04:23 2022 -0500
    
        Add a GDB tips section to Advanced Tools (#977)
        
    Adam Turner, Wed Jun 15 21:19:23 2022 +0100
    Adam Turner, Tue Jun 14 11:12:26 2022 +0100
    Suriyaa, Fri Jun 8 19:39:23 2018 +0200
    Jeff Allen, Tue Oct 24 18:12:53 2017 +0100
    Jeff Allen, Fri Oct 13 13:43:43 2017 +0100
    Mariatta, Wed Jan 4 09:14:55 2017 -0800
    Carol Willing, Mon Sep 26 14:50:54 2016 -0700
    Zachary Ware, Thu Jul 21 10:42:23 2016 -0500
    Georg Brandl, Mon Nov 3 11:28:19 2014 +0100
    
        Add instruction how to activate python-gdb.py
    
    Georg Brandl, Sun Mar 9 10:32:01 2014 +0100
    Georg Brandl, Tue Apr 3 09:12:53 2012 +0200
    Georg Brandl, Sat Mar 5 17:32:35 2011 +0100
    Dave Malcolm, Fri Jan 21 12:34:09 2011 -0500
    
        Add documentation on the gdb extension commands provided in libpython.py
        
        I adapted this from documentation I wrote for the Fedora wiki:
          https://fedoraproject.org/wiki/Features/EasierPythonDebugging#New_gdb_commands
        reformatting it as rst, and making other minor changes
    
    Brett Cannon, Thu Jan 20 15:16:52 2011 -0800
    Dave Malcolm, Thu Jan 20 16:17:23 2011 -0500
    
        Add some notes on the gdb pretty-printer hooks
    
    Antoine Pitrou, Thu Jan 20 21:17:49 2011 +0100
    
        Give an example backtrace
    
    Antoine Pitrou, Thu Jan 20 21:03:06 2011 +0100
    
        Expand explanations about gdb support
    
    Brett Cannon, Thu Jan 20 11:33:36 2011 -0800
    
        Tweak the gdb support title to fit in better with the devguide.
    
    Brett Cannon, Mon Jan 17 21:12:54 2011 +0000
    
        Short README on gdb support.
    
    
    Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
    Co-authored-by: anatoly techtonik <techtonik@gmail.com>
    Co-authored-by: Antoine Pitrou <solipsis@pitrou.net>
    Co-authored-by: Brett Cannon <brett@python.org>
    Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
    Co-authored-by: Dave Malcolm <dmalcolm@redhat.com>
    Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
    Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
    Co-authored-by: Georg Brandl <georg@python.org>
    Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
    Co-authored-by: Jeff Allen <ja.py@farowl.co.uk>
    Co-authored-by: Mariatta <Mariatta@users.noreply.github.com>
    Co-authored-by: Petr Viktorin <encukou@gmail.com>
    Co-authored-by: Satish Mishra <7506satish@gmail.com>
    Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
    Co-authored-by: Suriyaa <isc.suriyaa@gmail.com>
    Co-authored-by: Zachary Ware <zachary.ware@gmail.com>
    miss-islington pushed a commit to miss-islington/cpython that referenced this issue Feb 23, 2024
    Content adapted from https://devguide.python.org/development-tools/gdb/GH-
    and https://wiki.python.org/moin/DebuggingWithGdb.
    
    The original content on the Wiki page came from gdb debug help used by
    the Launchpad (https://launchpad.net/) team.
    Thanks to Anatoly Techtonik and user `rmf` for substantial improvements to the Wiki page.
    
    The history of the Devguide page follows
    (with log entries expanded for major content contributions):
    
    Hugo van Kemenade, Sat Dec 30 21:22:04 2023 +0200
    Hugo van Kemenade, Fri Dec 8 12:04:32 2023 +0200
    Erlend E. Aasland & Hugo van Kemenade, Tue Aug 8 22:05:34 2023 +0200
    Satish Mishra, Sat Feb 11 13:54:57 2023 +0530
    Hugo van Kemenade, Fri Dec 23 17:33:33 2022 +0200
    Skip Montanaro, Hugo, Erlend, & Ezio, Fri Nov 4 05:04:23 2022 -0500
    
        Add a GDB tips section to Advanced Tools (pythonGH-977)
    
    Adam Turner, Wed Jun 15 21:19:23 2022 +0100
    Adam Turner, Tue Jun 14 11:12:26 2022 +0100
    Suriyaa, Fri Jun 8 19:39:23 2018 +0200
    Jeff Allen, Tue Oct 24 18:12:53 2017 +0100
    Jeff Allen, Fri Oct 13 13:43:43 2017 +0100
    Mariatta, Wed Jan 4 09:14:55 2017 -0800
    Carol Willing, Mon Sep 26 14:50:54 2016 -0700
    Zachary Ware, Thu Jul 21 10:42:23 2016 -0500
    Georg Brandl, Mon Nov 3 11:28:19 2014 +0100
    
        Add instruction how to activate python-gdb.py
    
    Georg Brandl, Sun Mar 9 10:32:01 2014 +0100
    Georg Brandl, Tue Apr 3 09:12:53 2012 +0200
    Georg Brandl, Sat Mar 5 17:32:35 2011 +0100
    Dave Malcolm, Fri Jan 21 12:34:09 2011 -0500
    
        Add documentation on the gdb extension commands provided in libpython.py
    
        I adapted this from documentation I wrote for the Fedora wiki:
          https://fedoraproject.org/wiki/Features/EasierPythonDebuggingGH-New_gdb_commands
        reformatting it as rst, and making other minor changes
    
    Brett Cannon, Thu Jan 20 15:16:52 2011 -0800
    Dave Malcolm, Thu Jan 20 16:17:23 2011 -0500
    
        Add some notes on the gdb pretty-printer hooks
    
    Antoine Pitrou, Thu Jan 20 21:17:49 2011 +0100
    
        Give an example backtrace
    
    Antoine Pitrou, Thu Jan 20 21:03:06 2011 +0100
    
        Expand explanations about gdb support
    
    Brett Cannon, Thu Jan 20 11:33:36 2011 -0800
    
        Tweak the gdb support title to fit in better with the devguide.
    
    Brett Cannon, Mon Jan 17 21:12:54 2011 +0000
    
        Short README on gdb support.
    
    (cherry picked from commit 59057ce)
    
    Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
    Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
    Co-authored-by: anatoly techtonik <techtonik@gmail.com>
    Co-authored-by: Antoine Pitrou <solipsis@pitrou.net>
    Co-authored-by: Brett Cannon <brett@python.org>
    Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
    Co-authored-by: Dave Malcolm <dmalcolm@redhat.com>
    Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
    Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
    Co-authored-by: Georg Brandl <georg@python.org>
    Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
    Co-authored-by: Jeff Allen <ja.py@farowl.co.uk>
    Co-authored-by: Mariatta <Mariatta@users.noreply.github.com>
    Co-authored-by: Petr Viktorin <encukou@gmail.com>
    Co-authored-by: Satish Mishra <7506satish@gmail.com>
    Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
    Co-authored-by: Suriyaa <isc.suriyaa@gmail.com>
    Co-authored-by: Zachary Ware <zachary.ware@gmail.com>
    miss-islington pushed a commit to miss-islington/cpython that referenced this issue Feb 23, 2024
    Content adapted from https://devguide.python.org/development-tools/gdb/GH-
    and https://wiki.python.org/moin/DebuggingWithGdb.
    
    The original content on the Wiki page came from gdb debug help used by
    the Launchpad (https://launchpad.net/) team.
    Thanks to Anatoly Techtonik and user `rmf` for substantial improvements to the Wiki page.
    
    The history of the Devguide page follows
    (with log entries expanded for major content contributions):
    
    Hugo van Kemenade, Sat Dec 30 21:22:04 2023 +0200
    Hugo van Kemenade, Fri Dec 8 12:04:32 2023 +0200
    Erlend E. Aasland & Hugo van Kemenade, Tue Aug 8 22:05:34 2023 +0200
    Satish Mishra, Sat Feb 11 13:54:57 2023 +0530
    Hugo van Kemenade, Fri Dec 23 17:33:33 2022 +0200
    Skip Montanaro, Hugo, Erlend, & Ezio, Fri Nov 4 05:04:23 2022 -0500
    
        Add a GDB tips section to Advanced Tools (pythonGH-977)
    
    Adam Turner, Wed Jun 15 21:19:23 2022 +0100
    Adam Turner, Tue Jun 14 11:12:26 2022 +0100
    Suriyaa, Fri Jun 8 19:39:23 2018 +0200
    Jeff Allen, Tue Oct 24 18:12:53 2017 +0100
    Jeff Allen, Fri Oct 13 13:43:43 2017 +0100
    Mariatta, Wed Jan 4 09:14:55 2017 -0800
    Carol Willing, Mon Sep 26 14:50:54 2016 -0700
    Zachary Ware, Thu Jul 21 10:42:23 2016 -0500
    Georg Brandl, Mon Nov 3 11:28:19 2014 +0100
    
        Add instruction how to activate python-gdb.py
    
    Georg Brandl, Sun Mar 9 10:32:01 2014 +0100
    Georg Brandl, Tue Apr 3 09:12:53 2012 +0200
    Georg Brandl, Sat Mar 5 17:32:35 2011 +0100
    Dave Malcolm, Fri Jan 21 12:34:09 2011 -0500
    
        Add documentation on the gdb extension commands provided in libpython.py
    
        I adapted this from documentation I wrote for the Fedora wiki:
          https://fedoraproject.org/wiki/Features/EasierPythonDebuggingGH-New_gdb_commands
        reformatting it as rst, and making other minor changes
    
    Brett Cannon, Thu Jan 20 15:16:52 2011 -0800
    Dave Malcolm, Thu Jan 20 16:17:23 2011 -0500
    
        Add some notes on the gdb pretty-printer hooks
    
    Antoine Pitrou, Thu Jan 20 21:17:49 2011 +0100
    
        Give an example backtrace
    
    Antoine Pitrou, Thu Jan 20 21:03:06 2011 +0100
    
        Expand explanations about gdb support
    
    Brett Cannon, Thu Jan 20 11:33:36 2011 -0800
    
        Tweak the gdb support title to fit in better with the devguide.
    
    Brett Cannon, Mon Jan 17 21:12:54 2011 +0000
    
        Short README on gdb support.
    
    (cherry picked from commit 59057ce)
    
    Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
    Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
    Co-authored-by: anatoly techtonik <techtonik@gmail.com>
    Co-authored-by: Antoine Pitrou <solipsis@pitrou.net>
    Co-authored-by: Brett Cannon <brett@python.org>
    Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
    Co-authored-by: Dave Malcolm <dmalcolm@redhat.com>
    Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
    Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
    Co-authored-by: Georg Brandl <georg@python.org>
    Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
    Co-authored-by: Jeff Allen <ja.py@farowl.co.uk>
    Co-authored-by: Mariatta <Mariatta@users.noreply.github.com>
    Co-authored-by: Petr Viktorin <encukou@gmail.com>
    Co-authored-by: Satish Mishra <7506satish@gmail.com>
    Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
    Co-authored-by: Suriyaa <isc.suriyaa@gmail.com>
    Co-authored-by: Zachary Ware <zachary.ware@gmail.com>
    encukou added a commit that referenced this issue Feb 23, 2024
    gh-89480: Document the gdb helpers (GH-115657)
    
    Content adapted from https://devguide.python.org/development-tools/gdb/GH-
    and https://wiki.python.org/moin/DebuggingWithGdb.
    
    The original content on the Wiki page came from gdb debug help used by
    the Launchpad (https://launchpad.net/) team.
    Thanks to Anatoly Techtonik and user `rmf` for substantial improvements to the Wiki page.
    
    The history of the Devguide page follows
    (with log entries expanded for major content contributions):
    
    Hugo van Kemenade, Sat Dec 30 21:22:04 2023 +0200
    Hugo van Kemenade, Fri Dec 8 12:04:32 2023 +0200
    Erlend E. Aasland & Hugo van Kemenade, Tue Aug 8 22:05:34 2023 +0200
    Satish Mishra, Sat Feb 11 13:54:57 2023 +0530
    Hugo van Kemenade, Fri Dec 23 17:33:33 2022 +0200
    Skip Montanaro, Hugo, Erlend, & Ezio, Fri Nov 4 05:04:23 2022 -0500
    
        Add a GDB tips section to Advanced Tools (GH-977)
    
    Adam Turner, Wed Jun 15 21:19:23 2022 +0100
    Adam Turner, Tue Jun 14 11:12:26 2022 +0100
    Suriyaa, Fri Jun 8 19:39:23 2018 +0200
    Jeff Allen, Tue Oct 24 18:12:53 2017 +0100
    Jeff Allen, Fri Oct 13 13:43:43 2017 +0100
    Mariatta, Wed Jan 4 09:14:55 2017 -0800
    Carol Willing, Mon Sep 26 14:50:54 2016 -0700
    Zachary Ware, Thu Jul 21 10:42:23 2016 -0500
    Georg Brandl, Mon Nov 3 11:28:19 2014 +0100
    
        Add instruction how to activate python-gdb.py
    
    Georg Brandl, Sun Mar 9 10:32:01 2014 +0100
    Georg Brandl, Tue Apr 3 09:12:53 2012 +0200
    Georg Brandl, Sat Mar 5 17:32:35 2011 +0100
    Dave Malcolm, Fri Jan 21 12:34:09 2011 -0500
    
        Add documentation on the gdb extension commands provided in libpython.py
    
        I adapted this from documentation I wrote for the Fedora wiki:
          https://fedoraproject.org/wiki/Features/EasierPythonDebuggingGH-New_gdb_commands
        reformatting it as rst, and making other minor changes
    
    Brett Cannon, Thu Jan 20 15:16:52 2011 -0800
    Dave Malcolm, Thu Jan 20 16:17:23 2011 -0500
    
        Add some notes on the gdb pretty-printer hooks
    
    Antoine Pitrou, Thu Jan 20 21:17:49 2011 +0100
    
        Give an example backtrace
    
    Antoine Pitrou, Thu Jan 20 21:03:06 2011 +0100
    
        Expand explanations about gdb support
    
    Brett Cannon, Thu Jan 20 11:33:36 2011 -0800
    
        Tweak the gdb support title to fit in better with the devguide.
    
    Brett Cannon, Mon Jan 17 21:12:54 2011 +0000
    
        Short README on gdb support.
    
    (cherry picked from commit 59057ce)
    
    Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
    Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
    Co-authored-by: anatoly techtonik <techtonik@gmail.com>
    Co-authored-by: Antoine Pitrou <solipsis@pitrou.net>
    Co-authored-by: Brett Cannon <brett@python.org>
    Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
    Co-authored-by: Dave Malcolm <dmalcolm@redhat.com>
    Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
    Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
    Co-authored-by: Georg Brandl <georg@python.org>
    Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
    Co-authored-by: Jeff Allen <ja.py@farowl.co.uk>
    Co-authored-by: Mariatta <Mariatta@users.noreply.github.com>
    Co-authored-by: Petr Viktorin <encukou@gmail.com>
    Co-authored-by: Satish Mishra <7506satish@gmail.com>
    Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
    Co-authored-by: Suriyaa <isc.suriyaa@gmail.com>
    Co-authored-by: Zachary Ware <zachary.ware@gmail.com>
    encukou added a commit that referenced this issue Feb 23, 2024
    Content adapted from https://devguide.python.org/development-tools/gdb/GH-
    and https://wiki.python.org/moin/DebuggingWithGdb.
    
    The original content on the Wiki page came from gdb debug help used by
    the Launchpad (https://launchpad.net/) team.
    Thanks to Anatoly Techtonik and user `rmf` for substantial improvements to the Wiki page.
    
    The history of the Devguide page follows
    (with log entries expanded for major content contributions):
    
    Hugo van Kemenade, Sat Dec 30 21:22:04 2023 +0200
    Hugo van Kemenade, Fri Dec 8 12:04:32 2023 +0200
    Erlend E. Aasland & Hugo van Kemenade, Tue Aug 8 22:05:34 2023 +0200
    Satish Mishra, Sat Feb 11 13:54:57 2023 +0530
    Hugo van Kemenade, Fri Dec 23 17:33:33 2022 +0200
    Skip Montanaro, Hugo, Erlend, & Ezio, Fri Nov 4 05:04:23 2022 -0500
    
        Add a GDB tips section to Advanced Tools (GH-977)
    
    Adam Turner, Wed Jun 15 21:19:23 2022 +0100
    Adam Turner, Tue Jun 14 11:12:26 2022 +0100
    Suriyaa, Fri Jun 8 19:39:23 2018 +0200
    Jeff Allen, Tue Oct 24 18:12:53 2017 +0100
    Jeff Allen, Fri Oct 13 13:43:43 2017 +0100
    Mariatta, Wed Jan 4 09:14:55 2017 -0800
    Carol Willing, Mon Sep 26 14:50:54 2016 -0700
    Zachary Ware, Thu Jul 21 10:42:23 2016 -0500
    Georg Brandl, Mon Nov 3 11:28:19 2014 +0100
    
        Add instruction how to activate python-gdb.py
    
    Georg Brandl, Sun Mar 9 10:32:01 2014 +0100
    Georg Brandl, Tue Apr 3 09:12:53 2012 +0200
    Georg Brandl, Sat Mar 5 17:32:35 2011 +0100
    Dave Malcolm, Fri Jan 21 12:34:09 2011 -0500
    
        Add documentation on the gdb extension commands provided in libpython.py
    
        I adapted this from documentation I wrote for the Fedora wiki:
          https://fedoraproject.org/wiki/Features/EasierPythonDebuggingGH-New_gdb_commands
        reformatting it as rst, and making other minor changes
    
    Brett Cannon, Thu Jan 20 15:16:52 2011 -0800
    Dave Malcolm, Thu Jan 20 16:17:23 2011 -0500
    
        Add some notes on the gdb pretty-printer hooks
    
    Antoine Pitrou, Thu Jan 20 21:17:49 2011 +0100
    
        Give an example backtrace
    
    Antoine Pitrou, Thu Jan 20 21:03:06 2011 +0100
    
        Expand explanations about gdb support
    
    Brett Cannon, Thu Jan 20 11:33:36 2011 -0800
    
        Tweak the gdb support title to fit in better with the devguide.
    
    Brett Cannon, Mon Jan 17 21:12:54 2011 +0000
    
        Short README on gdb support.
    
    (cherry picked from commit 59057ce)
    
    Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
    Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
    Co-authored-by: anatoly techtonik <techtonik@gmail.com>
    Co-authored-by: Antoine Pitrou <solipsis@pitrou.net>
    Co-authored-by: Brett Cannon <brett@python.org>
    Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
    Co-authored-by: Dave Malcolm <dmalcolm@redhat.com>
    Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
    Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
    Co-authored-by: Georg Brandl <georg@python.org>
    Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
    Co-authored-by: Jeff Allen <ja.py@farowl.co.uk>
    Co-authored-by: Mariatta <Mariatta@users.noreply.github.com>
    Co-authored-by: Petr Viktorin <encukou@gmail.com>
    Co-authored-by: Satish Mishra <7506satish@gmail.com>
    Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
    Co-authored-by: Suriyaa <isc.suriyaa@gmail.com>
    Co-authored-by: Zachary Ware <zachary.ware@gmail.com>
    
    * Update (downdate?) this to Python 3.11
    
    ---------
    
    Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
    Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
    Co-authored-by: anatoly techtonik <techtonik@gmail.com>
    Co-authored-by: Antoine Pitrou <solipsis@pitrou.net>
    Co-authored-by: Brett Cannon <brett@python.org>
    Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
    Co-authored-by: Dave Malcolm <dmalcolm@redhat.com>
    Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
    Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
    Co-authored-by: Georg Brandl <georg@python.org>
    Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
    Co-authored-by: Jeff Allen <ja.py@farowl.co.uk>
    Co-authored-by: Mariatta <Mariatta@users.noreply.github.com>
    Co-authored-by: Petr Viktorin <encukou@gmail.com>
    Co-authored-by: Satish Mishra <7506satish@gmail.com>
    Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
    Co-authored-by: Suriyaa <isc.suriyaa@gmail.com>
    Co-authored-by: Zachary Ware <zachary.ware@gmail.com>
    @encukou
    Copy link
    Member

    encukou commented Feb 23, 2024

    Thanks!

    @encukou encukou closed this as completed Feb 23, 2024
    woodruffw pushed a commit to woodruffw-forks/cpython that referenced this issue Mar 4, 2024
    Content adapted from https://devguide.python.org/development-tools/gdb/#
    and https://wiki.python.org/moin/DebuggingWithGdb.
    
    The original content on the Wiki page came from gdb debug help used by
    the Launchpad (https://launchpad.net/) team. 
    Thanks to Anatoly Techtonik and user `rmf` for substantial improvements to the Wiki page.
    
    
    The history of the Devguide page follows
    (with log entries expanded for major content contributions):
    
    Hugo van Kemenade, Sat Dec 30 21:22:04 2023 +0200
    Hugo van Kemenade, Fri Dec 8 12:04:32 2023 +0200
    Erlend E. Aasland & Hugo van Kemenade, Tue Aug 8 22:05:34 2023 +0200
    Satish Mishra, Sat Feb 11 13:54:57 2023 +0530
    Hugo van Kemenade, Fri Dec 23 17:33:33 2022 +0200
    Skip Montanaro, Hugo, Erlend, & Ezio, Fri Nov 4 05:04:23 2022 -0500
    
        Add a GDB tips section to Advanced Tools (python#977)
        
    Adam Turner, Wed Jun 15 21:19:23 2022 +0100
    Adam Turner, Tue Jun 14 11:12:26 2022 +0100
    Suriyaa, Fri Jun 8 19:39:23 2018 +0200
    Jeff Allen, Tue Oct 24 18:12:53 2017 +0100
    Jeff Allen, Fri Oct 13 13:43:43 2017 +0100
    Mariatta, Wed Jan 4 09:14:55 2017 -0800
    Carol Willing, Mon Sep 26 14:50:54 2016 -0700
    Zachary Ware, Thu Jul 21 10:42:23 2016 -0500
    Georg Brandl, Mon Nov 3 11:28:19 2014 +0100
    
        Add instruction how to activate python-gdb.py
    
    Georg Brandl, Sun Mar 9 10:32:01 2014 +0100
    Georg Brandl, Tue Apr 3 09:12:53 2012 +0200
    Georg Brandl, Sat Mar 5 17:32:35 2011 +0100
    Dave Malcolm, Fri Jan 21 12:34:09 2011 -0500
    
        Add documentation on the gdb extension commands provided in libpython.py
        
        I adapted this from documentation I wrote for the Fedora wiki:
          https://fedoraproject.org/wiki/Features/EasierPythonDebugging#New_gdb_commands
        reformatting it as rst, and making other minor changes
    
    Brett Cannon, Thu Jan 20 15:16:52 2011 -0800
    Dave Malcolm, Thu Jan 20 16:17:23 2011 -0500
    
        Add some notes on the gdb pretty-printer hooks
    
    Antoine Pitrou, Thu Jan 20 21:17:49 2011 +0100
    
        Give an example backtrace
    
    Antoine Pitrou, Thu Jan 20 21:03:06 2011 +0100
    
        Expand explanations about gdb support
    
    Brett Cannon, Thu Jan 20 11:33:36 2011 -0800
    
        Tweak the gdb support title to fit in better with the devguide.
    
    Brett Cannon, Mon Jan 17 21:12:54 2011 +0000
    
        Short README on gdb support.
    
    
    Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
    Co-authored-by: anatoly techtonik <techtonik@gmail.com>
    Co-authored-by: Antoine Pitrou <solipsis@pitrou.net>
    Co-authored-by: Brett Cannon <brett@python.org>
    Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
    Co-authored-by: Dave Malcolm <dmalcolm@redhat.com>
    Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
    Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
    Co-authored-by: Georg Brandl <georg@python.org>
    Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
    Co-authored-by: Jeff Allen <ja.py@farowl.co.uk>
    Co-authored-by: Mariatta <Mariatta@users.noreply.github.com>
    Co-authored-by: Petr Viktorin <encukou@gmail.com>
    Co-authored-by: Satish Mishra <7506satish@gmail.com>
    Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
    Co-authored-by: Suriyaa <isc.suriyaa@gmail.com>
    Co-authored-by: Zachary Ware <zachary.ware@gmail.com>
    diegorusso pushed a commit to diegorusso/cpython that referenced this issue Apr 17, 2024
    Content adapted from https://devguide.python.org/development-tools/gdb/#
    and https://wiki.python.org/moin/DebuggingWithGdb.
    
    The original content on the Wiki page came from gdb debug help used by
    the Launchpad (https://launchpad.net/) team. 
    Thanks to Anatoly Techtonik and user `rmf` for substantial improvements to the Wiki page.
    
    
    The history of the Devguide page follows
    (with log entries expanded for major content contributions):
    
    Hugo van Kemenade, Sat Dec 30 21:22:04 2023 +0200
    Hugo van Kemenade, Fri Dec 8 12:04:32 2023 +0200
    Erlend E. Aasland & Hugo van Kemenade, Tue Aug 8 22:05:34 2023 +0200
    Satish Mishra, Sat Feb 11 13:54:57 2023 +0530
    Hugo van Kemenade, Fri Dec 23 17:33:33 2022 +0200
    Skip Montanaro, Hugo, Erlend, & Ezio, Fri Nov 4 05:04:23 2022 -0500
    
        Add a GDB tips section to Advanced Tools (python#977)
        
    Adam Turner, Wed Jun 15 21:19:23 2022 +0100
    Adam Turner, Tue Jun 14 11:12:26 2022 +0100
    Suriyaa, Fri Jun 8 19:39:23 2018 +0200
    Jeff Allen, Tue Oct 24 18:12:53 2017 +0100
    Jeff Allen, Fri Oct 13 13:43:43 2017 +0100
    Mariatta, Wed Jan 4 09:14:55 2017 -0800
    Carol Willing, Mon Sep 26 14:50:54 2016 -0700
    Zachary Ware, Thu Jul 21 10:42:23 2016 -0500
    Georg Brandl, Mon Nov 3 11:28:19 2014 +0100
    
        Add instruction how to activate python-gdb.py
    
    Georg Brandl, Sun Mar 9 10:32:01 2014 +0100
    Georg Brandl, Tue Apr 3 09:12:53 2012 +0200
    Georg Brandl, Sat Mar 5 17:32:35 2011 +0100
    Dave Malcolm, Fri Jan 21 12:34:09 2011 -0500
    
        Add documentation on the gdb extension commands provided in libpython.py
        
        I adapted this from documentation I wrote for the Fedora wiki:
          https://fedoraproject.org/wiki/Features/EasierPythonDebugging#New_gdb_commands
        reformatting it as rst, and making other minor changes
    
    Brett Cannon, Thu Jan 20 15:16:52 2011 -0800
    Dave Malcolm, Thu Jan 20 16:17:23 2011 -0500
    
        Add some notes on the gdb pretty-printer hooks
    
    Antoine Pitrou, Thu Jan 20 21:17:49 2011 +0100
    
        Give an example backtrace
    
    Antoine Pitrou, Thu Jan 20 21:03:06 2011 +0100
    
        Expand explanations about gdb support
    
    Brett Cannon, Thu Jan 20 11:33:36 2011 -0800
    
        Tweak the gdb support title to fit in better with the devguide.
    
    Brett Cannon, Mon Jan 17 21:12:54 2011 +0000
    
        Short README on gdb support.
    
    
    Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
    Co-authored-by: anatoly techtonik <techtonik@gmail.com>
    Co-authored-by: Antoine Pitrou <solipsis@pitrou.net>
    Co-authored-by: Brett Cannon <brett@python.org>
    Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
    Co-authored-by: Dave Malcolm <dmalcolm@redhat.com>
    Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
    Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
    Co-authored-by: Georg Brandl <georg@python.org>
    Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
    Co-authored-by: Jeff Allen <ja.py@farowl.co.uk>
    Co-authored-by: Mariatta <Mariatta@users.noreply.github.com>
    Co-authored-by: Petr Viktorin <encukou@gmail.com>
    Co-authored-by: Satish Mishra <7506satish@gmail.com>
    Co-authored-by: Skip Montanaro <skip.montanaro@gmail.com>
    Co-authored-by: Suriyaa <isc.suriyaa@gmail.com>
    Co-authored-by: Zachary Ware <zachary.ware@gmail.com>
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.11 only security fixes deferred-blocker docs Documentation in the Doc dir type-feature A feature request or enhancement
    Projects
    Development

    No branches or pull requests

    5 participants