Skip to content

Add a nice warning when LLDB does not support Python#27616

Merged
jabraham17 merged 6 commits intochapel-lang:mainfrom
jabraham17:add-nicer-lldb-error
Aug 7, 2025
Merged

Add a nice warning when LLDB does not support Python#27616
jabraham17 merged 6 commits intochapel-lang:mainfrom
jabraham17:add-nicer-lldb-error

Conversation

@jabraham17
Copy link
Member

@jabraham17 jabraham17 commented Aug 7, 2025

Adds a nicer error when LLDB does not support Python

Also fixes a few nightly tests that failed with errors about LLDB missing Python support

  • start_test test/execflags/lldbddash/declint.chpl test/library/standard/Debugger/breakpoint/useBreakpoint-lldb.chpl test/llvm/debugInfo/lldb/targetVar.chpl

[Reviewed by @DanilaFe]

Signed-off-by: Jade Abraham <jade.abraham@hpe.com>
@jabraham17 jabraham17 marked this pull request as ready for review August 7, 2025 16:22
Signed-off-by: Jade Abraham <jade.abraham@hpe.com>
Signed-off-by: Jade Abraham <jade.abraham@hpe.com>
Comment on lines 159 to 167
static chpl_bool chpl_lldb_supports_python(void) {
char output[256];
const char* command = "lldb --version";
if (!chpl_get_command_output(command, output, sizeof(output))) {
return false;
}
return output[0] != '\0' && access(output, R_OK) == 0;
}

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure why just running lldb --version tells you if "LLDB supports Python". Doesn't it just confirm that LLDB is installed? What am I missing?

Copy link
Member Author

Choose a reason for hiding this comment

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

Thats a very silly typo, it should be --python-path

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>
@jabraham17 jabraham17 merged commit 3562174 into chapel-lang:main Aug 7, 2025
10 checks passed
@jabraham17 jabraham17 deleted the add-nicer-lldb-error branch August 7, 2025 17:51
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.

2 participants