[Bug 287829] lldb prints the wrong value of errno in multi-threaded processes

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 28 Jun 2025 15:37:34 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=287829

--- Comment #5 from Greg Becker <becker.greg@att.net> ---
It does appear that clang-19 + lldb-19 on Linux see errno as an undeclared
identifier.  In my opinion, this is far better behavior than showing the
initial thread's errno when looking at a different thread in lldb on FreeBSD:


(lldb) p errno
error: <user expression 0>:1:1: use of undeclared identifier 'errno'
    1 | errno
      | ^

(lldb) p *(int *)__errno_location()
(int) 22

-- 
You are receiving this mail because:
You are the assignee for the bug.