[Lldb-commits] [lldb] [lldb][NativePDB] don't assert when a public symbol sits past its section (PR #225734)

via lldb-commits lldb-commits at lists.llvm.org
Wed Sep 23 04:46:52 PDT 2026


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {darker}-->


:warning: Python code formatter, darker found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
darker --check --diff -r origin/main...HEAD lldb/test/Shell/SymbolFile/NativePDB/Inputs/corrupt-public-offset.py
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

<details>
<summary>
View the diff from darker here.
</summary>

``````````diff
--- corrupt-public-offset.py	2026-09-23 11:44:10.000000 +0000
+++ corrupt-public-offset.py	2026-09-23 11:46:12.867559 +0000
@@ -6,13 +6,11 @@
 """
 import re
 import sys
 
 if len(sys.argv) != 4:
-    sys.exit(
-        "usage: corrupt-public-offset.py <yaml-file> <symbol-name> <new-offset>"
-    )
+    sys.exit("usage: corrupt-public-offset.py <yaml-file> <symbol-name> <new-offset>")
 
 yaml_path, symbol_name, new_offset = sys.argv[1:4]
 new_offset = int(new_offset, 0)
 
 with open(yaml_path) as f:

``````````

</details>


https://github.com/llvm/llvm-project/pull/225734


More information about the lldb-commits mailing list