| /openbsd/src/gnu/llvm/lldb/source/API/ |
| D | SBFileSpec.cpp | 99 size_t dst_len) { in ResolvePath() argument 100 LLDB_INSTRUMENT_VA(src_path, dst_path, dst_len); in ResolvePath() 104 ::snprintf(dst_path, dst_len, "%s", result.c_str()); in ResolvePath() 105 return std::min(dst_len - 1, result.size()); in ResolvePath() 140 uint32_t SBFileSpec::GetPath(char *dst_path, size_t dst_len) const { in GetPath() 141 LLDB_INSTRUMENT_VA(this, dst_path, dst_len); in GetPath() 143 uint32_t result = m_opaque_up->GetPath(dst_path, dst_len); in GetPath() 145 if (result == 0 && dst_path && dst_len > 0) in GetPath()
|
| D | SBCommunication.cpp | 104 size_t SBCommunication::Read(void *dst, size_t dst_len, uint32_t timeout_usec, in Read() argument 106 LLDB_INSTRUMENT_VA(this, dst, dst_len, timeout_usec, status); in Read() 113 bytes_read = m_opaque->Read(dst, dst_len, timeout, status, nullptr); in Read()
|
| D | SBStructuredData.cpp | 183 size_t SBStructuredData::GetStringValue(char *dst, size_t dst_len) const { in GetStringValue() 184 LLDB_INSTRUMENT_VA(this, dst, dst_len); in GetStringValue() 186 return m_impl_up->GetStringValue(dst, dst_len); in GetStringValue()
|
| D | SBProcess.cpp | 260 size_t SBProcess::GetSTDOUT(char *dst, size_t dst_len) const { in GetSTDOUT() 261 LLDB_INSTRUMENT_VA(this, dst, dst_len); in GetSTDOUT() 267 bytes_read = process_sp->GetSTDOUT(dst, dst_len, error); in GetSTDOUT() 273 size_t SBProcess::GetSTDERR(char *dst, size_t dst_len) const { in GetSTDERR() 274 LLDB_INSTRUMENT_VA(this, dst, dst_len); in GetSTDERR() 280 bytes_read = process_sp->GetSTDERR(dst, dst_len, error); in GetSTDERR() 286 size_t SBProcess::GetAsyncProfileData(char *dst, size_t dst_len) const { in GetAsyncProfileData() 287 LLDB_INSTRUMENT_VA(this, dst, dst_len); in GetAsyncProfileData() 293 bytes_read = process_sp->GetAsyncProfileData(dst, dst_len, error); in GetAsyncProfileData() 801 size_t SBProcess::ReadMemory(addr_t addr, void *dst, size_t dst_len, in ReadMemory() argument [all …]
|
| /openbsd/src/gnu/llvm/lldb/source/Target/ |
| D | Memory.cpp | 126 size_t MemoryCache::Read(addr_t addr, void *dst, size_t dst_len, in Read() argument 128 size_t bytes_left = dst_len; in Read() 139 AddrRange read_range(addr, dst_len); in Read() 147 dst_len); in Read() 148 return dst_len; in Read() 159 if (dst && dst_len > m_L2_cache_line_byte_size) { in Read() 161 m_process.ReadMemoryFromInferior(addr, dst, dst_len, error); in Read() 179 return dst_len - bytes_left; in Read() 190 memcpy(dst_buf + dst_len - bytes_left, in Read() 209 memcpy(dst_buf + dst_len - bytes_left, pos->second->GetBytes(), in Read() [all …]
|
| D | RegisterContext.cpp | 328 const uint32_t dst_len = reg_info->byte_size; in ReadRegisterValueFromMemory() local 330 if (src_len > dst_len) { in ReadRegisterValueFromMemory() 333 reg_info->name, dst_len); in ReadRegisterValueFromMemory() 369 const RegisterInfo *reg_info, lldb::addr_t dst_addr, uint32_t dst_len, in WriteRegisterValueToMemory() argument 389 *reg_info, dst, dst_len, process_sp->GetByteOrder(), error); in WriteRegisterValueToMemory()
|
| /openbsd/src/gnu/llvm/lldb/source/Core/ |
| D | ThreadedCommunication.cpp | 75 size_t ThreadedCommunication::Read(void *dst, size_t dst_len, in Read() argument 83 this, dst, dst_len, timeout, m_connection_sp.get()); in Read() 87 size_t cached_bytes = GetCachedBytes(dst, dst_len); in Read() 114 cached_bytes = GetCachedBytes(dst, dst_len); in Read() 135 return GetCachedBytes(dst, dst_len); in Read() 154 return Communication::Read(dst, dst_len, timeout, status, error_ptr); in Read() 216 size_t ThreadedCommunication::GetCachedBytes(void *dst, size_t dst_len) { in GetCachedBytes() argument 224 const size_t len = std::min<size_t>(dst_len, m_bytes.size()); in GetCachedBytes()
|
| D | Communication.cpp | 86 size_t Communication::Read(void *dst, size_t dst_len, in Read() argument 93 this, dst, dst_len, timeout, m_connection_sp.get()); in Read() 95 return ReadFromConnection(dst, dst_len, timeout, status, error_ptr); in Read() 127 size_t Communication::ReadFromConnection(void *dst, size_t dst_len, in ReadFromConnection() argument 133 return connection_sp->Read(dst, dst_len, timeout, status, error_ptr); in ReadFromConnection()
|
| D | EmulateInstruction.cpp | 167 void *dst, size_t dst_len) { in ReadMemory() argument 169 return m_read_mem_callback(this, m_baton, context, addr, dst, dst_len) == in ReadMemory() 170 dst_len; in ReadMemory() 260 size_t dst_len) { in ReadMemoryFrame() argument 261 if (baton == nullptr || dst == nullptr || dst_len == 0) in ReadMemoryFrame() 269 return process_sp->ReadMemory(addr, dst, dst_len, error); in ReadMemoryFrame()
|
| /openbsd/src/gnu/llvm/lldb/source/Utility/ |
| D | DataExtractor.cpp | 691 void *dst_void_ptr, offset_t dst_len, in CopyByteOrderedData() argument 701 assert(dst_len > 0); in CopyByteOrderedData() 705 assert(dst_byte_order == m_byte_order || dst_len == 1 || dst_len == 2 || in CopyByteOrderedData() 706 dst_len == 4 || dst_len == 8 || dst_len == 10 || dst_len == 16 || in CopyByteOrderedData() 707 dst_len == 32); in CopyByteOrderedData() 718 if (dst_len >= src_len) { in CopyByteOrderedData() 722 const size_t num_zeroes = dst_len - src_len; in CopyByteOrderedData() 754 ::memcpy(dst, src + (src_len - dst_len), dst_len); in CopyByteOrderedData() 757 for (uint32_t i = 0; i < dst_len; ++i) in CopyByteOrderedData() 758 dst[i] = src[dst_len - 1 - i]; in CopyByteOrderedData() [all …]
|
| D | RegisterValue.cpp | 39 uint32_t dst_len, in GetAsMemoryData() argument 51 if (dst_len > kMaxRegisterByteSize) { in GetAsMemoryData() 70 dst_len, // dst length in GetAsMemoryData() 105 const uint32_t dst_len = reg_info.byte_size; in SetFromMemoryData() local 107 if (src_len > dst_len) { in SetFromMemoryData() 110 reg_info.name, dst_len); in SetFromMemoryData()
|
| /openbsd/src/sys/crypto/ |
| D | chachapoly.c | 172 size_t dst_len; in chacha20poly1305_decrypt() local 191 dst_len = src_len - CHACHA20POLY1305_AUTHTAG_SIZE; in chacha20poly1305_decrypt() 192 poly1305_update(&poly1305_ctx, src, dst_len); in chacha20poly1305_decrypt() 193 poly1305_update(&poly1305_ctx, pad0, (0x10 - dst_len) & 0xf); in chacha20poly1305_decrypt() 196 b.lens[1] = htole64(dst_len); in chacha20poly1305_decrypt() 201 ret = timingsafe_bcmp(b.mac, src + dst_len, CHACHA20POLY1305_AUTHTAG_SIZE); in chacha20poly1305_decrypt() 203 chacha_encrypt_bytes(&chacha_ctx, (uint8_t *) src, dst, dst_len); in chacha20poly1305_decrypt()
|
| /openbsd/src/gnu/llvm/lldb/source/Plugins/UnwindAssembly/InstEmulation/ |
| D | UnwindAssemblyInstEmulation.cpp | 381 size_t dst_len) { in ReadMemory() argument 389 addr, dst, (uint64_t)dst_len); in ReadMemory() 393 memset(dst, 0, dst_len); in ReadMemory() 394 return dst_len; in ReadMemory() 400 const void *dst, size_t dst_len) { in WriteMemory() argument 401 if (baton && dst && dst_len) in WriteMemory() 403 ->WriteMemory(instruction, context, addr, dst, dst_len); in WriteMemory() 409 lldb::addr_t addr, const void *dst, size_t dst_len) { in WriteMemory() argument 410 DataExtractor data(dst, dst_len, in WriteMemory() 420 DumpDataExtractor(data, &strm, 0, eFormatBytes, 1, dst_len, UINT32_MAX, in WriteMemory() [all …]
|
| /openbsd/src/gnu/llvm/lldb/bindings/lua/ |
| D | lua-typemaps.swig | 78 %typemap(in) (char *dst, size_t dst_len) { 88 %typemap(in) (void *char_buf, size_t size) = (char *dst, size_t dst_len); 91 %typemap(in) (void *buf, size_t size) = (char *dst, size_t dst_len); 94 %typemap(argout) (char *dst, size_t dst_len) { 107 %typemap(argout) (void *char_buf, size_t size) = (char *dst, size_t dst_len); 110 %typemap(argout) (void *buf, size_t size) = (char *dst, size_t dst_len); 116 %typemap(in) (char *dst_or_null, size_t dst_len) { 124 %typemap(argout) (char *dst_or_null, size_t dst_len) {
|
| /openbsd/src/gnu/llvm/lldb/include/lldb/Core/ |
| D | StructuredDataImpl.h | 143 size_t GetStringValue(char *dst, size_t dst_len) const { in GetStringValue() argument 151 if (!dst || !dst_len) { in GetStringValue() 155 return (::snprintf(dst, dst_len, "%s", result.data())); in GetStringValue()
|
| D | Communication.h | 109 virtual size_t Read(void *dst, size_t dst_len, 174 size_t ReadFromConnection(void *dst, size_t dst_len,
|
| D | ThreadedCommunication.h | 140 size_t Read(void *dst, size_t dst_len, const Timeout<std::micro> &timeout, 278 size_t GetCachedBytes(void *dst, size_t dst_len);
|
| /openbsd/src/gnu/llvm/lldb/tools/debugserver/source/ |
| D | StdStringExtractor.cpp | 248 size_t StdStringExtractor::GetHexBytes(void *dst_void, size_t dst_len, in GetHexBytes() argument 252 while (bytes_extracted < dst_len && GetBytesLeft()) { in GetHexBytes() 260 for (size_t i = bytes_extracted; i < dst_len; ++i) in GetHexBytes() 270 size_t StdStringExtractor::GetHexBytesAvail(void *dst_void, size_t dst_len) { in GetHexBytesAvail() argument 273 while (bytes_extracted < dst_len) { in GetHexBytesAvail()
|
| D | StdStringExtractor.h | 80 size_t GetHexBytes(void *dst, size_t dst_len, uint8_t fail_fill_value); 82 size_t GetHexBytesAvail(void *dst, size_t dst_len);
|
| /openbsd/src/gnu/llvm/lldb/bindings/interface/ |
| D | SBFileSpec.i | 72 GetPath (char *dst_path, size_t dst_len) const; 75 ResolvePath (const char *src_path, char *dst_path, size_t dst_len);
|
| /openbsd/src/gnu/llvm/lldb/include/lldb/Utility/ |
| D | Connection.h | 118 virtual size_t Read(void *dst, size_t dst_len, 142 virtual size_t Write(const void *dst, size_t dst_len,
|
| /openbsd/src/gnu/llvm/lldb/source/Host/macosx/cfcpp/ |
| D | CFCBundle.cpp | 43 bool CFCBundle::GetPath(char *dst, size_t dst_len) { in GetPath() argument 51 (UInt8 *)dst, dst_len) != 0; in GetPath()
|
| /openbsd/src/gnu/llvm/lldb/source/Host/common/ |
| D | NativeRegisterContext.cpp | 345 const size_t dst_len = reg_info->byte_size; in ReadRegisterValueFromMemory() local 347 if (src_len > dst_len) { in ReadRegisterValueFromMemory() 352 static_cast<uint64_t>(dst_len)); in ReadRegisterValueFromMemory() 386 const RegisterInfo *reg_info, lldb::addr_t dst_addr, size_t dst_len, in WriteRegisterValueToMemory() argument 401 *reg_info, dst, dst_len, process.GetByteOrder(), error); in WriteRegisterValueToMemory()
|
| /openbsd/src/gnu/llvm/lldb/include/lldb/API/ |
| D | SBFileSpec.h | 51 uint32_t GetPath(char *dst_path, size_t dst_len) const; 53 static int ResolvePath(const char *src_path, char *dst_path, size_t dst_len);
|
| /openbsd/src/gnu/llvm/lldb/source/Plugins/ObjectFile/JIT/ |
| D | ObjectFileJIT.cpp | 205 size_t dst_len) { in ReadSectionData() argument 209 if (src_len > dst_len) in ReadSectionData() 210 src_len = dst_len; in ReadSectionData()
|