Skip to content

[FEA]: Debugger pretty-printers: cuda::std::array #10098

Description

@Jacobfaib

Create a lldb and gdb pretty printer for cuda::std::array.

The printer should live under libcudacxx/share/libcudacxx/<debugger>/array.py for each debugger.

In addition, the pretty printers should be exhaustively tested, with tests living under libcudacxx/test/debugging/array. See the existing tests in that directory for inspiration.

Activity

  1. added
    libcu++
    on Jul 22, 2026
  2. added
    help wanted
    on Jul 22, 2026
  3. pieroevcc commented on Jul 28, 2026

    @pieroevcc
    Contributor

    Hi, I'd like to take a shot at this!

  4. pieroevcc commented on Jul 28, 2026

    @pieroevcc
    Contributor

    Hi, @Jacobfaib,

    I hit a name collision implementing the LLDB side. array is a builtin in LLDB's embedded Python, so import array in lldb/__init__.py resolves to the stdlib module instead of the local file:

    (lldb) script import sys; print("array" in sys.builtin_module_names)
    True
    

    sys.path.insert (as gdb/__init__.py does) does not help here; I checked, and the script directory is already ahead of stdlib on sys.path. GDB is unaffected.

    The resulting AttributeError aborts __lldb_init_module before type category enable cccl, so all LLDB formatters go inactive, not just this one.

    I have it working by naming the LLDB module std_array.py, with gdb/array.py as specified. Let me know if you would rather it were handled differently.

  5. moved this from Todo to In Progress in CCCLon Jul 29, 2026
  6. moved this from In Progress to In Review in CCCLon Jul 29, 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

    good first issuehelp wantedlibcu++

    Projects

    • Status
      In Review

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions