diff options
author | Elliott Hughes <enh@google.com> | 2014-04-28 13:46:51 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2014-04-28 13:46:51 -0700 |
commit | eb050331b0634323f62d38a2263655de4c95eb54 (patch) | |
tree | e26c8f9a68c5b9d97ae6c04f45ef7a0d9f519420 | |
parent | 27ae7cb782821a4f2d3813522ee411cd978bcd85 (diff) | |
download | libcxx_35a-eb050331b0634323f62d38a2263655de4c95eb54.tar.gz |
Differentiate libcxx's unimplemented stubs from bionic's.
Change-Id: Id2a626115063768100c049c14707a13a61e4b39b
-rw-r--r-- | src/stubs.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/stubs.cpp b/src/stubs.cpp index d8b1ecbc..138877d3 100644 --- a/src/stubs.cpp +++ b/src/stubs.cpp @@ -15,13 +15,17 @@ extern "C" { #endif #include <errno.h> +#include <stdlib.h> #include <wchar.h> #include <support/android/nl_types.h> static void unimplemented_stub(const char* function) { - const char* fmt = "%s(3) is not implemented on Android\n"; + const char* fmt = "%s(3) is stubbed out in libcxx\n"; fprintf(stderr, fmt, function); +#if 0 // Enable if you're trying to find out who's calling... + abort(); +#endif } #define UNIMPLEMENTED unimplemented_stub(__PRETTY_FUNCTION__) |