llvm-project/lldb/source/Host/linux/AbstractSocket.cpp
Emre Kultursay 488eeb3ae5
Fix connecting via abstract socket (#136466)
Commit 82ee31f and Commit 2e893124 added socket sharing, but only for
unix domain sockets. That broke Android, which uses unix-abstract
sockets.
2025-04-25 14:11:19 -07:00

24 lines
836 B
C++

//===-- AbstractSocket.cpp ------------------------------------------------===//
//
// 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
//
//===----------------------------------------------------------------------===//
#include "lldb/Host/linux/AbstractSocket.h"
#include "llvm/ADT/StringRef.h"
using namespace lldb;
using namespace lldb_private;
AbstractSocket::AbstractSocket() : DomainSocket(ProtocolUnixAbstract) {}
AbstractSocket::AbstractSocket(NativeSocket socket, bool should_close)
: DomainSocket(ProtocolUnixAbstract, socket, should_close) {}
size_t AbstractSocket::GetNameOffset() const { return 1; }
void AbstractSocket::DeleteSocketFile(llvm::StringRef name) {}