summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2018-05-01 00:05:54 +0000
committerJason Molenda <jmolenda@apple.com>2018-05-01 00:05:54 +0000
commitc9f7939121b8acf47ca940e9cae29cfc81386e55 (patch)
treeed0547cff5aa213c483c33ef9f15ec235235aae9
parent03219f7f64b743cd53077280d139902b0e915365 (diff)
downloadbcm5719-llvm-c9f7939121b8acf47ca940e9cae29cfc81386e55.tar.gz
bcm5719-llvm-c9f7939121b8acf47ca940e9cae29cfc81386e55.zip
Add logging when ArchSpec::SetArchitecture is given a cputype and
cpusubtype that don't map to any known core definition. <rdar://problem/39779398> llvm-svn: 331236
-rw-r--r--lldb/source/Utility/ArchSpec.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/source/Utility/ArchSpec.cpp b/lldb/source/Utility/ArchSpec.cpp
index 8b2e6931ed8..72e30cf8bbe 100644
--- a/lldb/source/Utility/ArchSpec.cpp
+++ b/lldb/source/Utility/ArchSpec.cpp
@@ -9,6 +9,7 @@
#include "lldb/Utility/ArchSpec.h"
+#include "lldb/Utility/Log.h"
#include "lldb/Utility/NameMatches.h"
#include "lldb/Utility/Stream.h" // for Stream
#include "lldb/Utility/StringList.h"
@@ -978,6 +979,10 @@ bool ArchSpec::SetArchitecture(ArchitectureType arch_type, uint32_t cpu,
if (m_triple.getArch() == llvm::Triple::UnknownArch)
m_triple.setArch(core_def->machine);
}
+ } else {
+ Log *log(lldb_private::GetLogIfAnyCategoriesSet(LIBLLDB_LOG_TARGET | LIBLLDB_LOG_TARGET | LIBLLDB_LOG_PLATFORM));
+ if (log)
+ log->Printf("Unable to find a core definition for cpu 0x%" PRIx32 " sub %" PRId32, cpu, sub);
}
}
CoreUpdated(update_triple);
OpenPOWER on IntegriCloud