mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-06-13 10:40:59 +00:00
26 lines
1014 B
Diff
26 lines
1014 B
Diff
%diff --git llvm-toolchain-snapshot_3.5~svn201241.orig/lldllvm-toolchain-snapshot_3.5~svn201241/lldb/source/Host/freebsd/Host.cpp llvm-toolchain-snapshot_3.5~svn201241/lldb/source/Host/freebsd/Host.cpp
|
|
index 4f6af67..47cbb25 100644
|
|
Index: llvm-toolchain-snapshot_3.6~svn217023/lldb/source/Host/freebsd/Host.cpp
|
|
===================================================================
|
|
--- llvm-toolchain-snapshot_3.6~svn217023.orig/lldb/source/Host/freebsd/Host.cpp
|
|
+++ llvm-toolchain-snapshot_3.6~svn217023/lldb/source/Host/freebsd/Host.cpp
|
|
@@ -84,6 +84,18 @@ Host::ThreadCreated (const char *thread_
|
|
Host::SetShortThreadName (LLDB_INVALID_PROCESS_ID, LLDB_INVALID_THREAD_ID, thread_name, 16);
|
|
}
|
|
|
|
+// Debian kFreeBSD uses the FreeBSD kernel with a GNU libc
|
|
+#ifdef __GLIBC__
|
|
+static inline void *
|
|
+reallocf(void *ptr, size_t size)
|
|
+{
|
|
+ void *rv = realloc(ptr, size);
|
|
+ if (rv == NULL)
|
|
+ free(ptr);
|
|
+ return rv;
|
|
+}
|
|
+#endif
|
|
+
|
|
std::string
|
|
Host::GetThreadName (lldb::pid_t pid, lldb::tid_t tid)
|
|
{
|