[Lldb-commits] [lldb] [lldb] Upstream lldb-rpc-gen and LLDB RPC server-side emitters (PR #136748)

Chelsea Cassanova via lldb-commits lldb-commits at lists.llvm.org
Tue Apr 29 14:54:26 PDT 2025


================
@@ -0,0 +1,61 @@
+#!/usr/bin/env python3
+# Usage: framework-header-version-fix.py <path/to/input-header.h> <path/to/output-header.h> MAJOR MINOR PATCH
+
+import argparse
+import os
+import re
+import subprocess
+
+
+def main():
+    parser = argparse.ArgumentParser()
+    parser.add_argument("input")
+    parser.add_argument("output")
+    parser.add_argument("lldb_version_major")
+    parser.add_argument("lldb_version_minor")
+    parser.add_argument("lldb_version_patch")
+    args = parser.parse_args()
+    input_path = str(args.input)
+    output_path = str(args.output)
+    lldb_version_major = str(args.lldb_version_major)
----------------
chelcassanova wrote:

I checked and it does in fact default to str so the type conversion here can be removed. IIRC the paths that I pass in for the script are taken in as lists so I think I was being overcautious here.

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


More information about the lldb-commits mailing list