GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add a collection of offsets to facilitate the work of out-of-process debuggers · Issue #106597 · python/cpython

Add a collection of offsets to facilitate the work of out-of-process debuggers #106597

New issue
Copy link
New issue
Copy link
Closed
Closed
Add a collection of offsets to facilitate the work of out-of-process debuggers#106597
Copy link

Description

@pablogsal
pablogsal
opened on Jul 10, 2023
Issue body actions

Some of the relevant fields in the interpreter state and the frame state in 3.12 are very challenging to fetch from out-of-process tools because they are in offsets that depend on compilation or platform variables that are different in different platforms. Not only that but they require the tools to copy a huge amount of intermediate structures making the whole thing very verbose.

To allow out-of-process tools to get these offsets without having to copy the headers (which also doesn't really work as some of these fields may depend on compilation flags and other parameters), add a debugging struct to the runtime state (which is the entry point many of these tools need anyway) that contain a list of the offsets that are relevant for out-of-process tools.

This list will not be backward compatible between minor versions but is expected to reflect the relevant fields for all the life of a minor version.

We can add more fields to the struct in the future at our leisure.

See #106140 and #100987 and #105271 for more information.

Linked PRs

  • gh-106597: Add debugging struct with offsets for out-of-process tools #106598
  • gh-106597: Add more offsets to _Py_DebugOffsets #121311
  • [3.13] gh-106597: Add more offsets to _Py_DebugOffsets (GH-121311) #121312
  • gh-106597: Remove unnecessary CFrame offsets #121369
  • [3.13] gh-106597: Remove unnecessary CFrame offsets (GH-121369) #121370
Reacted by Mark Shannon
Reacted by Kemal Akkoyun

Activity

  1. pablogsal
    added 2 commits that reference this issue on Jul 10, 2023

    pythongh-106597: Add debugging struct with offsets for out-of-process…

    b84bb00

    gh-106597: Add debugging struct with offsets for out-of-process tools (…

    b444bfb
  2. hugovk commented on Nov 10, 2023

    @hugovk
    hugovk
    on Nov 10, 2023
    Member
    More actions

    Is there more to do here, or can we close this issue?

  3. pablogsal commented on Nov 10, 2023

    @pablogsal
    pablogsal
    on Nov 10, 2023
    MemberAuthor
    More actions

    We can close it for now 👍

    Reacted by Hugo van Kemenade and Kemal Akkoyun
  4. pablogsal
    closed this as completedon Nov 10, 2023
  5. pablogsal
    added a commit that references this issue on Jul 3, 2024

    gh-106597: Add more offsets to _Py_DebugOffsets (#121311)

    c9bdfbe
  6. miss-islington
    added a commit that references this issue on Jul 3, 2024

    pythongh-106597: Add more offsets to _Py_DebugOffsets (pythonGH-121311)

    f8297a0
  7. pablogsal
    added a commit that references this issue on Jul 3, 2024

    [3.13] gh-106597: Add more offsets to _Py_DebugOffsets (GH-121311) (#…

    d3e586e
  8. P403n1x87
    added a commit that references this issue on Jul 4, 2024

    pythongh-106597: Remove unnecessary CFrame offsets

    2a42f7a
  9. pablogsal
    added a commit that references this issue on Jul 4, 2024

    gh-106597: Remove unnecessary CFrame offsets (#121369)

    f5c8d67
  10. miss-islington
    added a commit that references this issue on Jul 4, 2024

    pythongh-106597: Remove unnecessary CFrame offsets (pythonGH-121369)

    51b1af3
  11. vstinner
    added a commit that references this issue on Jul 4, 2024

    [3.13] gh-106597: Remove unnecessary CFrame offsets (GH-121369) (#121370

    273c993
  12. estyxx
    added 2 commits that reference this issue on Jul 17, 2024

    pythongh-106597: Add more offsets to _Py_DebugOffsets (python#121311)

    87f59e4

    pythongh-106597: Remove unnecessary CFrame offsets (python#121369)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.