head 1.5; access; symbols pkgsrc-2024Q2:1.3.0.16 pkgsrc-2024Q2-base:1.3 pkgsrc-2024Q1:1.3.0.14 pkgsrc-2024Q1-base:1.3 pkgsrc-2023Q4:1.3.0.12 pkgsrc-2023Q4-base:1.3 pkgsrc-2023Q3:1.3.0.10 pkgsrc-2023Q3-base:1.3 pkgsrc-2023Q2:1.3.0.8 pkgsrc-2023Q2-base:1.3 pkgsrc-2023Q1:1.3.0.6 pkgsrc-2023Q1-base:1.3 pkgsrc-2022Q4:1.3.0.4 pkgsrc-2022Q4-base:1.3 pkgsrc-2022Q3:1.3.0.2 pkgsrc-2022Q3-base:1.3 pkgsrc-2022Q2:1.2.0.8 pkgsrc-2022Q2-base:1.2 pkgsrc-2022Q1:1.2.0.6 pkgsrc-2022Q1-base:1.2 pkgsrc-2021Q4:1.2.0.4 pkgsrc-2021Q4-base:1.2 pkgsrc-2021Q3:1.2.0.2 pkgsrc-2021Q3-base:1.2 pkgsrc-2021Q2:1.1.0.8 pkgsrc-2021Q2-base:1.1 pkgsrc-2021Q1:1.1.0.6 pkgsrc-2021Q1-base:1.1 pkgsrc-2020Q4:1.1.0.4 pkgsrc-2020Q4-base:1.1 pkgsrc-2020Q3:1.1.0.2 pkgsrc-2020Q3-base:1.1; locks; strict; comment @// @; 1.5 date 2026.03.25.22.56.25; author wiz; state Exp; branches; next 1.4; commitid 29BuEbar9GuKtpzG; 1.4 date 2024.07.06.15.45.08; author adam; state dead; branches; next 1.3; commitid 9KpFpYTi5zNpfNgF; 1.3 date 2022.08.12.08.54.31; author pin; state Exp; branches; next 1.2; commitid aZwtJgIJuqDJhzPD; 1.2 date 2021.07.12.18.47.16; author adam; state Exp; branches; next 1.1; commitid 7eASzeZNvc8ciJ0D; 1.1 date 2020.09.19.17.25.02; author he; state Exp; branches; next ; commitid YuVugaGeUk8zlGoC; desc @@ 1.5 log @llvm and friends: update to to 20.1.8 Based on the wip packages and help from adam@@ @ text @$NetBSD$ Fix build on NetBSD. https://github.com/llvm/llvm-project/issues/181586 --- source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp.orig 2026-02-26 13:08:26.461369868 +0000 +++ source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp @@@@ -302,8 +302,8 @@@@ void NativeProcessNetBSD::MonitorSIGTRAP(lldb::pid_t p LLDB_LOG(log, "monitoring new thread, pid = {0}, LWP = {1}", pid, pst.pe_lwp); NativeThreadNetBSD &t = AddThread(pst.pe_lwp); - error = t.CopyWatchpointsFrom( - static_cast(*GetCurrentThread())); + error = Status::FromError(t.CopyWatchpointsFrom( + static_cast(*GetCurrentThread()))); if (error.Fail()) { LLDB_LOG(log, "failed to copy watchpoints to new thread {0}: {1}", pst.pe_lwp, error); @@@@ -490,7 +490,7 @@@@ Status NativeProcessNetBSD::Resume(const ResumeActionL Expected siginfo = ComputeSignalInfo(m_threads, resume_actions); if (!siginfo) - return Status(siginfo.takeError()); + return Status::FromError(siginfo.takeError()); for (const auto &abs_thread : m_threads) { assert(abs_thread && "thread list should not contain NULL threads"); @ 1.4 log @llvm: updated to 18.1.8 https://releases.llvm.org @ text @d1 1 a1 1 $NetBSD: patch-source_Plugins_Process_NetBSD_NativeProcessNetBSD.cpp,v 1.3 2022/08/12 08:54:31 pin Exp $ d3 2 a4 1 Provide StopProcess. d6 1 a6 1 --- source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp.orig 2022-06-22 16:46:24.000000000 +0000 d8 17 a24 3 @@@@ -381,6 +381,29 @@@@ void NativeProcessNetBSD::MonitorSignal( SetState(StateType::eStateStopped, true); } d26 2 a27 44 +Status NativeProcessNetBSD::StopProcess(lldb::pid_t pid) { +#ifdef PT_STOP + return PtraceWrapper(PT_STOP, pid); +#else + Log *log(ProcessPOSIXLog::GetLogIfAllCategoriesSet(POSIX_LOG_PTRACE)); + int ret; + Status error; + + errno = 0; + ret = kill(pid, SIGSTOP); + + if (ret == -1) + error.SetErrorToErrno(); + + LLDB_LOG(log, "kill({0}, SIGSTOP)", pid); + + if (error.Fail()) + LLDB_LOG(log, "kill() failed: {0}", error); + + return error; +#endif +} + Status NativeProcessNetBSD::PtraceWrapper(int req, lldb::pid_t pid, void *addr, int data, int *result) { Log *log = GetLog(POSIXLog::Ptrace); @@@@ -533,7 +556,7 @@@@ Status NativeProcessNetBSD::Resume(const return ret; } -Status NativeProcessNetBSD::Halt() { return PtraceWrapper(PT_STOP, GetID()); } +Status NativeProcessNetBSD::Halt() { return StopProcess(GetID()); } Status NativeProcessNetBSD::Detach() { Status error; @@@@ -558,7 +581,7 @@@@ Status NativeProcessNetBSD::Signal(int s } Status NativeProcessNetBSD::Interrupt() { - return PtraceWrapper(PT_STOP, GetID()); + return StopProcess(GetID()); } Status NativeProcessNetBSD::Kill() { @ 1.3 log @devel/lldb: llvm update @ text @d1 1 a1 1 $NetBSD$ @ 1.2 log @lld lldb: updated to 12.0.1 12.0.1 Non-comprehensive list of changes in this release ELF Improvements --dependency-file has been added. (Similar to cc -M -MF.) (D82437) --error-handling-script has been added to allow for user-defined handlers upon missing libraries. (D87758) --exclude-libs can now localize defined version symbols and bitcode referenced libcall symbols. (D94280) --gdb-index now works with DWARF v5 and --icf={safe,all}. (D85579) (D89751) --gdb-index --emit-relocs can now be used together. (D94354) --icf={safe,all} conservatively no longer fold text sections with LSDA. Previously ICF on -fexceptions code could be unsafe. (D84610) --icf={safe,all} can now fold two sections with relocations referencing aliased symbols. (D88830) --lto-pseudo-probe-for-profiling has been added. (D95056) --no-lto-whole-program-visibility has been added. (D92060) --oformat-binary has been fixed to respect LMA. (D85086) --reproduce includes --lto-sample-profile, --just-symbols, --call-graph-ordering-file, --retain-symbols-file files. -r --gc-sections is now supported. (D84131) A -u specified symbol will no longer change the binding to STB_WEAK. (D88945) --wrap support has been improved. + If foo is not referenced, there is no longer an undefined symbol __wrap_foo. + If __real_foo is not referenced, there is no longer an undefined symbol foo. SHF_LINK_ORDER sections can now have zero sh_link values. SHF_LINK_ORDER and non-SHF_LINK_ORDER sections can now be mixed within an input section description. (D84001) LOG2CEIL is now supported in linker scripts. (D84054) DEFINED has been fixed to check whether the symbol is defined. (D83758) An input section description may now have multiple SORT_*. The matched sections are ordered by radix sort with the keys being (SORT*, --sort-section, input order). (D91127) Users can now provide a GNU style linker script to convert .ctors into .init_array. (D91187) An empty output section can now be discarded even if it is assigned to a program header. (D92301) Non-SHF_ALLOC sections now have larger file offsets than SHF_ALLOC sections. (D85867) Some symbol versioning improvements. + Defined foo@@@@v1 now resolve undefined foo@@v1 (D92259) + Undefined foo@@v1 now gets an error (D92260) The AArch64 port now has support for STO_AARCH64_VARIANT_PCS and DT_AARCH64_VARIANT_PCS. (D93045) The AArch64 port now has support for R_AARCH64_LD64_GOTPAGE_LO15. The PowerPC64 port now detects missing R_PPC64_TLSGD/R_PPC64_TLSLD and disables TLS relaxation. This allows linking with object files produced by very old IBM XL compilers. (D92959) Many PowerPC PC-relative relocations are now supported. R_PPC_ADDR24 and R_PPC64_ADDR16_HIGH are now supported. powerpcle is now supported. Tested with FreeBSD loader and freestanding. (D93917) RISC-V: the first SHT_RISCV_ATTRIBUTES section is now retained. (D86309) LTO pipeline now defaults to the new PM if the CMake variable ENABLE_EXPERIMENTAL_NEW_PASS_MANAGER is on. (D92885) @ text @d1 1 a1 1 $NetBSD: patch-source_Plugins_Process_NetBSD_NativeProcessNetBSD.cpp,v 1.1 2020/09/19 17:25:02 he Exp $ d5 1 a5 1 --- source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp.orig 2021-04-06 16:38:18.000000000 +0000 d7 1 a7 1 @@@@ -346,6 +346,29 @@@@ void NativeProcessNetBSD::MonitorSignal( d36 2 a37 2 Log *log(ProcessPOSIXLog::GetLogIfAllCategoriesSet(POSIX_LOG_PTRACE)); @@@@ -498,7 +521,7 @@@@ Status NativeProcessNetBSD::Resume(const d46 1 a46 1 @@@@ -523,7 +546,7 @@@@ Status NativeProcessNetBSD::Signal(int s @ 1.1 log @Add some code which makes this build on 9.0 plain, verified on amd64, since PT_STOP was introduced after the 9.0 release. Based on hints from kamil@@. Bump PKGREVISION. @ text @d1 1 a1 1 $NetBSD$ d5 1 a5 1 --- source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp.orig 2020-07-07 16:21:37.000000000 +0000 d7 1 a7 1 @@@@ -344,6 +344,29 @@@@ void NativeProcessNetBSD::MonitorSignal( d37 2 a38 1 @@@@ -497,7 +520,7 @@@@ Status NativeProcessNetBSD::Resume(const d41 2 a42 4 Status NativeProcessNetBSD::Halt() { - return PtraceWrapper(PT_STOP, GetID()); + return StopProcess(GetID()); } d45 1 @