diff --git a/src/native/nativeaot/host/internal-pinvoke-stubs.cc b/src/native/nativeaot/host/internal-pinvoke-stubs.cc index 8cea50867b2..877ba869020 100644 --- a/src/native/nativeaot/host/internal-pinvoke-stubs.cc +++ b/src/native/nativeaot/host/internal-pinvoke-stubs.cc @@ -5,9 +5,14 @@ using namespace xamarin::android; namespace { [[gnu::noreturn]] - void pinvoke_unreachable () + void pinvoke_unreachable (std::source_location sloc = std::source_location::current ()) { - Helpers::abort_application (LOG_DEFAULT, "The method is not implemented. This is a stub and should not be called."sv); + Helpers::abort_application ( + LOG_DEFAULT, + "The p/invoke is not implemented. This is a stub and should not be called."sv, + true, // log_location + sloc + ); } }