[lldb][NFC] Fix all formatting errors in .cpp file headers
Summary:
A *.cpp file header in LLDB (and in LLDB) should like this:
```
//===-- TestUtilities.cpp -------------------------------------------------===//
```
However in LLDB most of our source files have arbitrary changes to this format and
these changes are spreading through LLDB as folks usually just use the existing
source files as templates for their new files (most notably the unnecessary
editor language indicator `-*- C++ -*-` is spreading and in every review
someone is pointing out that this is wrong, resulting in people pointing out that this
is done in the same way in other files).
This patch removes most of these inconsistencies including the editor language indicators,
all the different missing/additional '-' characters, files that center the file name, missing
trailing `===//` (mostly caused by clang-format breaking the line).
Reviewers: aprantl, espindola, jfb, shafik, JDevlieghere
Reviewed By: JDevlieghere
Subscribers: dexonsmith, wuzish, emaste, sdardis, nemanjai, kbarton, MaskRay, atanasyan, arphaman, jfb, abidh, jsji, JDevlieghere, usaxena95, lldb-commits
Tags: #lldb
Differential Revision: https://reviews.llvm.org/D73258
2020-01-24 15:23:27 +08:00
|
|
|
//===-- ProcessKDPLog.cpp -------------------------------------------------===//
|
2011-07-15 11:27:12 +08:00
|
|
|
//
|
2019-01-19 16:50:56 +08:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2011-07-15 11:27:12 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "ProcessKDPLog.h"
|
|
|
|
|
|
|
|
using namespace lldb_private;
|
|
|
|
|
2017-02-17 23:08:08 +08:00
|
|
|
static constexpr Log::Category g_categories[] = {
|
|
|
|
{{"async"}, {"log asynchronous activity"}, KDP_LOG_ASYNC},
|
|
|
|
{{"break"}, {"log breakpoints"}, KDP_LOG_BREAKPOINTS},
|
|
|
|
{{"comm"}, {"log communication activity"}, KDP_LOG_COMM},
|
|
|
|
{{"data-long"},
|
|
|
|
{"log memory bytes for memory reads and writes for all transactions"},
|
|
|
|
KDP_LOG_MEMORY_DATA_LONG},
|
|
|
|
{{"data-short"},
|
|
|
|
{"log memory bytes for memory reads and writes for short transactions "
|
|
|
|
"only"},
|
|
|
|
KDP_LOG_MEMORY_DATA_SHORT},
|
|
|
|
{{"memory"}, {"log memory reads and writes"}, KDP_LOG_MEMORY},
|
|
|
|
{{"packets"}, {"log gdb remote packets"}, KDP_LOG_PACKETS},
|
|
|
|
{{"process"}, {"log process events and activities"}, KDP_LOG_PROCESS},
|
|
|
|
{{"step"}, {"log step related activities"}, KDP_LOG_STEP},
|
|
|
|
{{"thread"}, {"log thread events and activities"}, KDP_LOG_THREAD},
|
|
|
|
{{"watch"}, {"log watchpoint related activities"}, KDP_LOG_WATCHPOINTS},
|
|
|
|
};
|
|
|
|
|
|
|
|
Log::Channel ProcessKDPLog::g_channel(g_categories, KDP_LOG_DEFAULT);
|
|
|
|
|
|
|
|
void ProcessKDPLog::Initialize() { Log::Register("kdp-remote", g_channel); }
|