[Lldb-commits] [lldb] [lldb] refactor PlatformAndroid (PR #145382)
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Fri Jul 25 06:16:23 PDT 2025
================
@@ -0,0 +1,46 @@
+//===-- AdbClientUtils.h --------------------------------------------------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+#ifndef LLDB_SOURCE_PLUGINS_PLATFORM_ANDROID_ADBCLIENTUTILS_H
+#define LLDB_SOURCE_PLUGINS_PLATFORM_ANDROID_ADBCLIENTUTILS_H
+
+#include "lldb/Utility/Status.h"
+#include <string>
+
+namespace lldb_private {
+class Connection;
+
+namespace platform_android {
+
+const std::chrono::seconds kReadTimeout(20);
+const static char *kOKAY = "OKAY";
+const static char *kFAIL = "FAIL";
+const static char *kDATA = "DATA";
+const static char *kDONE = "DONE";
+const static char *kSEND = "SEND";
+const static char *kRECV = "RECV";
+const static char *kSTAT = "STAT";
+const static size_t kSyncPacketLen = 8;
+const static size_t kMaxPushData = 2 * 1024;
+const static uint32_t kDefaultMode = 0100770;
----------------
labath wrote:
`static` in a header is a no-no.
https://github.com/llvm/llvm-project/pull/145382
More information about the lldb-commits
mailing list