Skip to content

python-gdb.py doesn't support float numbers #163039

Done

Description

@vstinner

Currently, python-gdb.py doesn't support Python float numbers:

$ gdb ./python
(gdb) b builtin_id
Breakpoint 1 at 0x896671: file Python/clinic/bltinmodule.c.h, line 752.
(gdb) run

>>> id(1.0)

Breakpoint 1, builtin_id (self=<module at remote 0x7ffff7c285f0>, v=v@entry=<float at remote 0x7ffff7bfcbb0>) at Python/clinic/bltinmodule.c.h:752
752	{
(gdb) p v
$1 = <float at remote 0x7ffff7bfcbb0>

It would be helpful to support float to help debugging issues involving floating point numbers.

Linked PRs

Activity

  1. added
    type-bug
    on Dec 2, 2026
  2. added a commit that references this issue on Dec 2, 2026
  3. added
    interpreter-core
    on Dec 3, 2026
  4. added 3 commits that reference this issue on Dec 3, 2026
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

    interpreter-coretype-bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions