On Wed, Mar 12, 2025 at 1:29 PM 'Dan Albert' via android-ndk
<
andro...@googlegroups.com> wrote:
>
> Yeah, whatever sources you were previously passing to `as` you should just pass to `clang`. Some driver arguments may change, but I think other than that the only change is that the C preprocessor will be run on your asm sources.
is that true? it doesn't distinguish between .s (no preprocessor) and
.S (preprocessor)?
>> There's no gdb or gdbserver. That's not too surprising. There is an lldb. I've used lldb for debugging macOS code and I'm not scared of it, but how do I start an executable on Android and debug it with lldb on the host Linux? I'm working purely with the command line, and don't use Android Studio.
>
>
> Same as before: ndk-gdb (or ndk-lldb, either works, they're aliased to the same implementation). I don't recall the incantation for non-app executables, but I'm pretty sure it's capable of it.
yeah, it's probably obvious from the help output, but if not it should
be close enough to its platform sibling gdbclient^Wlldbclient:
https://source.android.com/docs/core/tests/debug/gdb
> On Wed, Mar 12, 2025 at 5:47 AM John Dallman <
jgdats...@gmail.com> wrote:
>>
>> There are some tools that I'm used to using which were in NDK23b, the last version I used, but are not in 27c:
>>
>> 'as' was in aarch64-linux-android/bin/ in NDK23b. We have an assembler source file (written by enh), which contains tests for PAC and BTI. We do the assembling via clang, but I thought it used 'as' to do the assembling? Does it have an internal assembler? I know llvm-as isn't relevant; I saw the note about it in the build system maintainers document.
>>
>> There's no gdb or gdbserver. That's not too surprising. There is an lldb. I've used lldb for debugging macOS code and I'm not scared of it, but how do I start an executable on Android and debug it with lldb on the host Linux? I'm working purely with the command line, and don't use Android Studio.
>>
>> Thanks very much,
>>
>> John
>>
>> --
>> You received this message because you are subscribed to the Google Groups "android-ndk" group.
>> To unsubscribe from this group and stop receiving emails from it, send an email to
android-ndk...@googlegroups.com.
>> To view this discussion visit
https://groups.google.com/d/msgid/android-ndk/CAH1xqgnGJEh0ZUPZAOMKLi%2BjednmGi4KMoZn7-yX1EPDO4U1Rw%40mail.gmail.com.
>
> --
> You received this message because you are subscribed to the Google Groups "android-ndk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
android-ndk...@googlegroups.com.
> To view this discussion visit
https://groups.google.com/d/msgid/android-ndk/CAFVaGhsn-%2BNFbV15Jw7oh7Ubr_TAiEBDSZjxANt9hehjd8ROKg%40mail.gmail.com.