You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: clang/docs/ReleaseNotes.rst
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,9 +89,18 @@ Non-comprehensive list of changes in this release
89
89
-------------------------------------------------
90
90
- Added ``__builtin_elementwise_minnumnum`` and ``__builtin_elementwise_maxnumnum``.
91
91
92
+
- Trapping UBSan (e.g. ``-fsanitize-trap=undefined``) now emits a string describing the reason for
93
+
trapping into the generated debug info. This feature allows debuggers (e.g. LLDB) to display
94
+
the reason for trapping if the trap is reached. The string is currently encoded in the debug
95
+
info as an artificial frame that claims to be inlined at the trap location. The function used
96
+
for the artificial frame is an artificial function whose name encodes the reason for trapping.
97
+
The encoding used is currently the same as ``__builtin_verbose_trap`` but might change in the future.
98
+
This feature is enabled by default but can be disabled by compiling with
99
+
``-fno-sanitize-annotate-debug-info-traps``.
92
100
93
101
New Compiler Flags
94
102
------------------
103
+
- New option ``-fno-sanitize-annotate-debug-info-traps`` added to disable emitting trap reasons into the debug info when compiling with trapping UBSan (e.g. ``-fsanitize-trap=undefined``).
0 commit comments