brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · 66b2f00 Raw
46 lines · c
1//===-- ProcessGDBRemoteLog.h -----------------------------------*- C++ -*-===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8 9#ifndef LLDB_SOURCE_PLUGINS_PROCESS_GDB_REMOTE_PROCESSGDBREMOTELOG_H10#define LLDB_SOURCE_PLUGINS_PROCESS_GDB_REMOTE_PROCESSGDBREMOTELOG_H11 12#include "lldb/Utility/Log.h"13#include "llvm/ADT/BitmaskEnum.h"14 15namespace lldb_private {16namespace process_gdb_remote {17 18enum class GDBRLog : Log::MaskType {19  Async = Log::ChannelFlag<0>,20  Breakpoints = Log::ChannelFlag<1>,21  Comm = Log::ChannelFlag<2>,22  Memory = Log::ChannelFlag<3>,          // Log memory reads/writes calls23  MemoryDataLong = Log::ChannelFlag<4>,  // Log all memory reads/writes bytes24  MemoryDataShort = Log::ChannelFlag<5>, // Log short memory reads/writes bytes25  Packets = Log::ChannelFlag<6>,26  Process = Log::ChannelFlag<7>,27  Step = Log::ChannelFlag<8>,28  Thread = Log::ChannelFlag<9>,29  Watchpoints = Log::ChannelFlag<10>,30  LLVM_MARK_AS_BITMASK_ENUM(Watchpoints)31};32LLVM_ENABLE_BITMASK_ENUMS_IN_NAMESPACE();33 34class ProcessGDBRemoteLog {35public:36  static void Initialize();37};38 39} // namespace process_gdb_remote40 41template <> Log::Channel &LogChannelFor<process_gdb_remote::GDBRLog>();42 43} // namespace lldb_private44 45#endif // LLDB_SOURCE_PLUGINS_PROCESS_GDB_REMOTE_PROCESSGDBREMOTELOG_H46