Make SBDebugger::CreateTargetWithFileAndArch work with lldb::LLDB_DEFAULT_ARCH
authorJim Ingham <jingham@apple.com>
Tue, 26 Jan 2021 20:15:09 +0000 (12:15 -0800)
committerJim Ingham <jingham@apple.com>
Tue, 26 Jan 2021 20:17:39 +0000 (12:17 -0800)
commit7636b1f6efd56063adcde4f908740660365462a5
treee7f87613746f7614fcdbc4595c256aecfdac0962
parentd2abd62b9d123cde5a55a92450bbe665b237a72d
Make SBDebugger::CreateTargetWithFileAndArch work with lldb::LLDB_DEFAULT_ARCH

Second try, handling both a bogus arch string and the "null file & arch" used
to create an empty but valid target.
Also check in that case before logging (previously the logging would have
crashed.)
lldb/source/API/SBDebugger.cpp
lldb/test/API/python_api/target/TestTargetAPI.py