[lldb][windows] try to resolve module path if info.hFile is null (#198795)
The Windows API can deliver `LOAD_DLL_DEBUG_EVENT` with `hFile` set to
NULL. In practice, this happens in practice
inside Windows Server Core containers for system DLLs like
`kernel32.dll`, `KernelBase.dll` and `ucrtbase.dll`. This is the issue
described by @Nerixyz in
https://github.com/llvm/llvm-project/issues/132800.
`DebuggerThread::HandleLoadDllEvent` previously dropped any such event.
This patch improves the module path resolution with the 2 following
methods:
- `GetFileNameByLoadAddress`: resolve the module path given its base
load address.
- `GetFileNameFromImageNameField`: resolve the module path given the
`LOAD_DLL_DEBUG_INFO::lpImageName` field.
This requires:
- https://github.com/llvm/llvm-project/pull/198794
[X86][AtomicExpand] Remove X86's shouldCastAtomicLoadInIR override (added in #148899)
So that atomic floating-point and FP-vector loads are no longer bitcast to an integer
at the IR level by AtomicExpand.
misc/DeepSeek-TUI: Add deepseek-tui version 0.8.39
Packaged in wip by Chavdar Ivanov and Claude Code.
Rust-based terminal coding agent for Deep-Seek V4.
tcp: set initial RTO to 1s per RFC 6298
Lower TCPTV_SRTTDFLT from 3s to 1s and adjust the t_rttvar seed in
tcp_tcpcb_template() so the pre-measurement TCP_REXMTVAL() equals
TCPTV_SRTTDFLT (was 2*TCPTV_SRTTDFLT). Active opens and SYN|ACK
retransmits now start at 1s and back off 1, 2, 4, ... per RFC 6298
sections 2.1 and 5.5. Post-first-sample RTO is unchanged.
Pin tcp_msl_remote_threshold to its previous numeric default (3*PR_SLOWHZ)
so the SRTTDFLT change does not move an unrelated TIME_WAIT-shortening
tunable.
This is conceptually https://reviews.freebsd.org/D18941 which we ran at a
large CDN, modified for NetBSD's stack.
[lldb] Move Policy from Target to Utility (NFC) (#198897)
Move the Policy struct and PolicyStack class from lldb/Target to
lldb/Utility. This is a pure relocation -- no API or behavior changes.
This is needed so that lldbHost (which contains ProcessRunLock) can
depend on Policy without introducing a layering violation, since
lldbHost cannot depend on lldbTarget.
----
The following PRs are related to the Policy feature:
- #195762
- #195771
- #198897
- #195774
- #195775
rdar://176223894
Signed-off-by: Med Ismail Bennani <ismail at bennani.ma>
CI: Add reallocf(3) for non-BSD platforms
Alpine Linux (musl) systems lack the reallocf(3) function.
Add reallocf.c to the compat layer, using FreeBSD's implementation.
Fixes: 9b1f2b153 ("rwhich: implement file tracking and search for remote repositories")
Silence "switch statement contains default but no case labels"; NFC (#198866)
65f8a7c1c423d96597bdb14062a0d0eb27d7caf4 accidentally introduced some
diagnostics from having a switch statement with a default label but no
case labels. This removes the switch statements until we have more cases
to add.
In the vscsi_callback() handle ISCSI_SCSI_STAT_CHCK_COND more carefully.
Especially the embedded sense data needs to be extracted respecting the
real buffer length. Make sure at least 2 bytes are availabe for the lenght
and also check that the resulting len is not bigger then the buffer
itself.
Reported by Frank Denis
OK deraadt@