Skip to content

Add initial LLDB pretty printer for some base Chapel types#27602

Merged
jabraham17 merged 10 commits intochapel-lang:mainfrom
jabraham17:add-lldb-pretty-print
Aug 6, 2025
Merged

Add initial LLDB pretty printer for some base Chapel types#27602
jabraham17 merged 10 commits intochapel-lang:mainfrom
jabraham17:add-lldb-pretty-print

Conversation

@jabraham17
Copy link
Member

@jabraham17 jabraham17 commented Aug 6, 2025

Adds some initial pretty printing logic to --lldb for COMM=none programs. This pretty print works entirely for the C backend and partially for the LLVM backend (for now).

This PR adds printers for the following types

  • strings
  • ranges
  • homogeneous tuples
  • local default rectangular domains
  • local default rectangular arrays
Screenshot 2025-08-05 at 8 51 04 AM

Resolves #27197

Note that this does NOT add tests of the pretty printer, as our primary linux64 nightly test machine has an LLDB without Python support. Its possible we can adjust this install or add testing on other machines.

Future work

[Reviewed by @lydia-duncan]

Signed-off-by: Jade Abraham <jade.abraham@hpe.com>
Signed-off-by: Jade Abraham <jade.abraham@hpe.com>
Signed-off-by: Jade Abraham <jade.abraham@hpe.com>
Signed-off-by: Jade Abraham <jade.abraham@hpe.com>
Signed-off-by: Jade Abraham <jade.abraham@hpe.com>
Signed-off-by: Jade Abraham <jade.abraham@hpe.com>
Signed-off-by: Jade Abraham <jade.abraham@hpe.com>
Signed-off-by: Jade Abraham <jade.abraham@hpe.com>
Signed-off-by: Jade Abraham <jade.abraham@hpe.com>
Copy link
Member

@lydia-duncan lydia-duncan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple of cleanup thoughts, this is really exciting to have!

Signed-off-by: Jade Abraham <jade.abraham@hpe.com>
@jabraham17 jabraham17 merged commit a34e626 into chapel-lang:main Aug 6, 2025
10 checks passed
@jabraham17 jabraham17 deleted the add-lldb-pretty-print branch August 6, 2025 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Design]: Adding debug pretty print functions to Chapel

2 participants