blob: 0c5c02668e0fa2a50df6ab8848774a1765f16dc5 [file] [log] [blame]
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/developer/debug/zxdb/client/target_observer.h"
#include "src/lib/fxl/logging.h"
namespace zxdb {
// static
const char* TargetObserver::DestroyReasonToString(DestroyReason reason) {
switch (reason) {
case DestroyReason::kExit:
return "Exit";
case DestroyReason::kDetach:
return "Detach";
case DestroyReason::kKill:
return "Kill";
}
FXL_NOTREACHED();
return nullptr;
}
} // namespace zxdb