[Lldb-commits] [lldb] [lldb][RPC] Upstream Python scripts (PR #138028)

Chelsea Cassanova via lldb-commits lldb-commits at lists.llvm.org
Tue May 6 10:35:32 PDT 2025


================
@@ -0,0 +1,44 @@
+#!/usr/bin/env python3
+# Usage: framework-header-include-fix.py <path/to/input-header.h> <path/to/output-header.h>
+# This script modifies all #include lines in all lldb-rpc headers
+# from either filesystem or local includes to liblldbrpc includes.
+
+import argparse
+import os
+import re
+
+
+def main():
+    parser = argparse.ArgumentParser()
+    parser.add_argument("input")
+    parser.add_argument("output")
+    args = parser.parse_args()
+    input_path = str(args.input)
+    output_path = str(args.output)
+    with open(input_path, "r+") as input_file:
----------------
chelcassanova wrote:

This was a mistake from an earlier implementation, I shoud've had all of these replaced with just `r` or `w` from your original set of comments on the larger PR.

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


More information about the lldb-commits mailing list