KEMBAR78
Make the NativeAOT debugger script more flexible by grendello · Pull Request #10016 · dotnet/android · GitHub
Skip to content

Conversation

@grendello
Copy link
Contributor

@grendello grendello commented Apr 8, 2025

Make it able to detect the OS-specific path to the NDK toolchain binaries,
as well as the path to the NDK root directory using a number of environment
variables used at one time or another for this purpose.

Instead of hard-coding path to the lldb-server binary, which is located in
a versioned directory, use clang itself to print full path to the binary,
thus making the script LLVM version agnostic.

Additionally, detect the attached device's architecture and use the correct
lldb-server binary.

@grendello grendello requested a review from jonpryor as a code owner April 8, 2025 19:42
@grendello grendello requested review from dellis1972 and jonpryor and removed request for jonpryor April 8, 2025 19:42
Make it able to detect the OS-specific path to the NDK toolchain binaries, as well
as the path to the NDK root directory using a number of environment variables used
at one time or another for this purpose.

Instead of hard-coding path to the `lldb-server` binary, which is located in a
versioned directory, use `clang` itself to print full path to the binary, thus
making the script LLVM version agnostic.
@grendello grendello force-pushed the dev/grendel/nativeaot-debug-paths branch from 1ac5132 to ff25bd5 Compare April 9, 2025 08:13
@grendello
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dellis1972 dellis1972 merged commit 196d7a0 into main Apr 9, 2025
57 of 60 checks passed
@dellis1972 dellis1972 deleted the dev/grendel/nativeaot-debug-paths branch April 9, 2025 10:53
@github-actions github-actions bot locked and limited conversation to collaborators May 10, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants