https://github.com/chelcassanova updated
https://github.com/llvm/llvm-project/pull/142051
>From c0ece622ddf6e2f899d2a184cc0fcb1b44a3ebf5 Mon Sep 17 00:00:00 2001
From: Chelsea Cassanova
Date: Wed, 28 May 2025 15:45:45 -0700
Subject: [PATCH] [lldb][headers] Create Python script to fix up framewo
https://github.com/chelcassanova updated
https://github.com/llvm/llvm-project/pull/138028
>From 208288fc19c742553a4a4c7bb71e54b85a7b8ada Mon Sep 17 00:00:00 2001
From: Chelsea Cassanova
Date: Wed, 30 Apr 2025 13:37:15 -0700
Subject: [PATCH] [lldb][RPC] Upstream LLDB to RPC converstion Python sc
https://github.com/chelcassanova updated
https://github.com/llvm/llvm-project/pull/142051
>From d39eeaae552395cd79324aaa38eccb3f9dfe4a79 Mon Sep 17 00:00:00 2001
From: Chelsea Cassanova
Date: Wed, 28 May 2025 15:45:45 -0700
Subject: [PATCH] [lldb][headers] Create Python script to fix up framewo
@@ -0,0 +1,117 @@
+#!/usr/bin/env python3
+
+"""
+Usage:
+
+This script is used when building LLDB.framework or LLDBRPC.framework. For
each framework, local includes are converted to their respective framework
includes.
+
+This script is used in 2 ways:
+1. It is used on heade
@@ -290,6 +290,45 @@ else()
endif()
endif()
+# Stage all headers in the include directory in the build dir.
chelcassanova wrote:
The logic of finding all the headers for staging them in a directory should be
able to live here alone. The idea is that the fr
https://github.com/chelcassanova updated
https://github.com/llvm/llvm-project/pull/142051
>From 4064ae7a71171f0c6d95826aff478ceabf036869 Mon Sep 17 00:00:00 2001
From: Chelsea Cassanova
Date: Wed, 28 May 2025 15:45:45 -0700
Subject: [PATCH] [lldb][headers] Create Python script to fix up framewo
https://github.com/chelcassanova updated
https://github.com/llvm/llvm-project/pull/142051
>From dd86d088d6fb8b7632f310e2011c2031766ebf27 Mon Sep 17 00:00:00 2001
From: Chelsea Cassanova
Date: Wed, 28 May 2025 15:45:45 -0700
Subject: [PATCH] [lldb][headers] Create Python script to fix up framewo
https://github.com/chelcassanova updated
https://github.com/llvm/llvm-project/pull/142051
>From 7a5672078a4a60077c025ace82f18cbab88fdf3d Mon Sep 17 00:00:00 2001
From: Chelsea Cassanova
Date: Wed, 28 May 2025 15:45:45 -0700
Subject: [PATCH] [lldb][headers] Create Python script to fix up framewo
https://github.com/chelcassanova updated
https://github.com/llvm/llvm-project/pull/138028
>From 4520d08763106b8d639e8afcb3f035a3070dee7f Mon Sep 17 00:00:00 2001
From: Chelsea Cassanova
Date: Wed, 30 Apr 2025 13:37:15 -0700
Subject: [PATCH] [lldb][RPC] Upstream LLDB to RPC converstion Python sc
https://github.com/chelcassanova updated
https://github.com/llvm/llvm-project/pull/141116
>From 40793cd53f94744ee157865b579ff01eb5776f59 Mon Sep 17 00:00:00 2001
From: Chelsea Cassanova
Date: Thu, 22 May 2025 11:00:06 -0700
Subject: [PATCH] [lldb][headers] Create script to fix up versioning
Th
chelcassanova wrote:
I think this could be ready to land now @DavidSpickett and @JDevlieghere, could
you give this another once over?
https://github.com/llvm/llvm-project/pull/138028
___
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://li
@@ -0,0 +1,16 @@
+// Copy lldb-rpc-defines.h from source.
+# RUN: mkdir -p %t/input
+# RUN: mkdir -p %t/output
+# RUN: cp %p/../../../../../include/lldb/lldb-defines.h %t/input
chelcassanova wrote:
I changed all the tests so that the files are no longer copied fr
https://github.com/chelcassanova updated
https://github.com/llvm/llvm-project/pull/138032
>From c209f358c0a897499bfd93508bc72d52baa25d07 Mon Sep 17 00:00:00 2001
From: Chelsea Cassanova
Date: Wed, 30 Apr 2025 14:24:03 -0700
Subject: [PATCH] [lldb[RPC] Upstream RPC server interface emitters
Thi
chelcassanova wrote:
I added some small shell tests to this patch that check the output of the
emitter mainly for sanity checking. @bulbazord I think having basic tests like
what I added would be good for the server-side emitter, but if there's anything
other thing you can think of test here p
https://github.com/chelcassanova updated
https://github.com/llvm/llvm-project/pull/138032
>From b6edf90f106ee2b339a162e13058167899f2ee21 Mon Sep 17 00:00:00 2001
From: Chelsea Cassanova
Date: Wed, 30 Apr 2025 14:24:03 -0700
Subject: [PATCH] [lldb[RPC] Upstream RPC server interface emitters
Thi
https://github.com/chelcassanova updated
https://github.com/llvm/llvm-project/pull/138028
>From 2b6f460e1e2a358aafef80354010cbad87ac5134 Mon Sep 17 00:00:00 2001
From: Chelsea Cassanova
Date: Wed, 30 Apr 2025 13:37:15 -0700
Subject: [PATCH] [lldb][RPC] Upstream Python scripts
As part of upstre
@@ -0,0 +1,592 @@
+//===-- RPCServerSourceEmitter.cpp
===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM
Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Ap
https://github.com/chelcassanova updated
https://github.com/llvm/llvm-project/pull/138032
>From 8732082e1c688e335c6bf42701fc064abe5de1a5 Mon Sep 17 00:00:00 2001
From: Chelsea Cassanova
Date: Wed, 30 Apr 2025 14:24:03 -0700
Subject: [PATCH] [lldb[RPC] Upstream RPC server interface emitters
Thi
https://github.com/chelcassanova updated
https://github.com/llvm/llvm-project/pull/138032
>From a6c3566dc11b27caaf98f1ae3c45fe30a4ee8d34 Mon Sep 17 00:00:00 2001
From: Chelsea Cassanova
Date: Wed, 30 Apr 2025 14:24:03 -0700
Subject: [PATCH] [lldb[RPC] Upstream RPC server interface emitters
Thi
https://github.com/chelcassanova updated
https://github.com/llvm/llvm-project/pull/141116
>From 975f510e96e0775db29b2f5bcdb9b838a8e4e95f Mon Sep 17 00:00:00 2001
From: Chelsea Cassanova
Date: Thu, 22 May 2025 11:00:06 -0700
Subject: [PATCH] [lldb][headers] Create script to fix up versioning
Th
https://github.com/chelcassanova updated
https://github.com/llvm/llvm-project/pull/141116
>From fcb4a366d9f4659273480f49c491fc50a179cfff Mon Sep 17 00:00:00 2001
From: Chelsea Cassanova
Date: Thu, 22 May 2025 11:00:06 -0700
Subject: [PATCH] [lldb][headers] Create script to fix up versioning
Th
https://github.com/chelcassanova updated
https://github.com/llvm/llvm-project/pull/141116
>From b9930c61eff81d3b0c84357d1af86b110ce60ebf Mon Sep 17 00:00:00 2001
From: Chelsea Cassanova
Date: Thu, 22 May 2025 11:00:06 -0700
Subject: [PATCH] [lldb][headers] Create script to fix up versioning
Th
@@ -0,0 +1,17 @@
+// Run the convert script on it, then run the framework include fix on it. The
framework version fix script
+// expects that all lldb references have been renamed to lldb-rpc in order for
it to modify the includes
+// to go into the framework.
@@ -0,0 +1,53 @@
+#!/usr/bin/env python3
+"""
+Usage: LLDB_MAJOR_VERSION
LLDB_MINOR_VERSION LLDB_PATCH_VERSION
+
+This script uncomments and populates the versioning information in
lldb-defines.h
+"""
+
+import argparse
+import os
+import re
+
+LLDB_VERSION_REGEX = re.compile(
https://github.com/chelcassanova updated
https://github.com/llvm/llvm-project/pull/138028
>From 01e35b2635b3727be7f7ab6f2389086c6e86b776 Mon Sep 17 00:00:00 2001
From: Chelsea Cassanova
Date: Wed, 30 Apr 2025 13:37:15 -0700
Subject: [PATCH] [lldb][RPC] Upstream Python scripts
As part of upstre
chelcassanova wrote:
> There is functionality in lldb/scripts/framework-header-fix.sh that does the
> same thing. Can you remove this functionality from that script too?
Yeah, I can remove that. The ultimate goal I want here is:
1. Fixing up the versioning takes place in its own script (the one
https://github.com/chelcassanova updated
https://github.com/llvm/llvm-project/pull/138028
>From 0b83514cde0b6fa2adc8c31a082a03770248ae4e Mon Sep 17 00:00:00 2001
From: Chelsea Cassanova
Date: Wed, 30 Apr 2025 13:37:15 -0700
Subject: [PATCH] [lldb][RPC] Upstream Python scripts
As part of upstre
https://github.com/chelcassanova updated
https://github.com/llvm/llvm-project/pull/138028
>From 31161db1c9b0bd040513eb8ff4504c29d1e6c04f Mon Sep 17 00:00:00 2001
From: Chelsea Cassanova
Date: Wed, 30 Apr 2025 13:37:15 -0700
Subject: [PATCH] [lldb][RPC] Upstream Python scripts
As part of upstre
@@ -0,0 +1,20 @@
+// Copy lldb-defines.h from source.
+# RUN: mkdir -p %t/input
+# RUN: mkdir -p %t/output
+# RUN: cp %p/../../../../../include/lldb/lldb-defines.h %t/input
chelcassanova wrote:
Nice, I didn't know that about llvm-lit. I'll change everything to us
https://github.com/chelcassanova updated
https://github.com/llvm/llvm-project/pull/141116
>From 70c3d439f67c331823a218b76feef7fddd34c4d6 Mon Sep 17 00:00:00 2001
From: Chelsea Cassanova
Date: Thu, 22 May 2025 11:00:06 -0700
Subject: [PATCH] [lldb][headers] Create script to fix up versioning
Th
https://github.com/chelcassanova updated
https://github.com/llvm/llvm-project/pull/141116
>From 6b43888f8eaf5d28c4fa58e716cc2c534f325c3e Mon Sep 17 00:00:00 2001
From: Chelsea Cassanova
Date: Thu, 22 May 2025 11:00:06 -0700
Subject: [PATCH] [lldb][headers] Create script to fix up versioning
Th
https://github.com/chelcassanova created
https://github.com/llvm/llvm-project/pull/141116
This commit creates a Python script that fixes up the versioning information in
lldb-defines.h. It also moves the build logic for fixing up the lldb headers
from being in the framework only to being in th
https://github.com/chelcassanova closed
https://github.com/llvm/llvm-project/pull/138020
___
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
https://github.com/chelcassanova updated
https://github.com/llvm/llvm-project/pull/138020
Rate limit · GitHub
body {
background-color: #f6f8fa;
color: #24292e;
font-family: -apple-system,BlinkMacSystemFont,Segoe
UI,Helvetica,Arial,
chelcassanova wrote:
@bulbazord @JDevlieghere Is it possible to take another pass over at this? I
think this should be good to land now.
https://github.com/llvm/llvm-project/pull/138020
___
lldb-commits mailing list
lldb-commits@lists.llvm.org
https:/
https://github.com/chelcassanova updated
https://github.com/llvm/llvm-project/pull/138612
Rate limit · GitHub
body {
background-color: #f6f8fa;
color: #24292e;
font-family: -apple-system,BlinkMacSystemFont,Segoe
UI,Helvetica,Arial,
chelcassanova wrote:
Pushed again to address David's comments and remove most of the FIXMEs. There's
one FIXME I've kept in for now:
```
// FIXME: SB class server references are stored as non-const references so
// that we can actually change them as needed. If a parameter is marked
// const, we
https://github.com/chelcassanova updated
https://github.com/llvm/llvm-project/pull/138032
Rate limit · GitHub
body {
background-color: #f6f8fa;
color: #24292e;
font-family: -apple-system,BlinkMacSystemFont,Segoe
UI,Helvetica,Arial,
https://github.com/chelcassanova updated
https://github.com/llvm/llvm-project/pull/138032
Rate limit · GitHub
body {
background-color: #f6f8fa;
color: #24292e;
font-family: -apple-system,BlinkMacSystemFont,Segoe
UI,Helvetica,Arial,
https://github.com/chelcassanova reopened
https://github.com/llvm/llvm-project/pull/138028
___
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
https://github.com/chelcassanova closed
https://github.com/llvm/llvm-project/pull/138028
___
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
chelcassanova wrote:
@DavidSpickett I pushed here to address most of the outstanding changes I
needed to make from your comments, and this change should also fix the CI issue
on BuildKite. Could you give this patch another pass over?
https://github.com/llvm/llvm-project/pull/138028
___
https://github.com/chelcassanova updated
https://github.com/llvm/llvm-project/pull/138028
>From a00c76df4467c85a7436fc340c79d0a15ab6231a Mon Sep 17 00:00:00 2001
From: Chelsea Cassanova
Date: Wed, 30 Apr 2025 13:37:15 -0700
Subject: [PATCH] [lldb][RPC] Upstream Python scripts
As part of upstre
@@ -0,0 +1,13 @@
+// Generate a dummy SB API file using lldb-rpc-gen.
+# RUN: mkdir -p %t/server
+# RUN: mkdir -p %t/lib
chelcassanova wrote:
I just checked on macOS and got the same error. The error is a bit misleading,
it's actually happening because I'm using
@@ -0,0 +1,18 @@
+// Copy lldb-rpc-defines.h from source.
+# RUN: mkdir -p %t/input
+# RUN: mkdir -p %t/output
+# RUN: cp %p/../../../../../include/lldb/lldb-defines.h %t/input
+
+// Run the convert script on it, then run the framework include fix on it. The
framework version fix
@@ -0,0 +1,13 @@
+// Generate a dummy SB API file using lldb-rpc-gen.
+# RUN: mkdir -p %t/server
+# RUN: mkdir -p %t/lib
chelcassanova wrote:
> I don't see anything that would need job control, I'm wondering if a stray
> character is causing the shell to think t
@@ -0,0 +1,535 @@
+//===-- RPCCommon.cpp
-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM
Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Ap
@@ -0,0 +1,535 @@
+//===-- RPCCommon.cpp
-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM
Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Ap
@@ -0,0 +1,546 @@
+//===-- RPCCommon.cpp
-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM
Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Ap
@@ -0,0 +1,535 @@
+//===-- RPCCommon.cpp
-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM
Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Ap
@@ -0,0 +1,535 @@
+//===-- RPCCommon.cpp
-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM
Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Ap
@@ -0,0 +1,535 @@
+//===-- RPCCommon.cpp
-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM
Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Ap
https://github.com/chelcassanova updated
https://github.com/llvm/llvm-project/pull/138031
>From 59dcdc0da49646e2152b1e2b6158dd1b7137bea5 Mon Sep 17 00:00:00 2001
From: Chelsea Cassanova
Date: Wed, 30 Apr 2025 14:15:39 -0700
Subject: [PATCH] [lldb][RPC] Upstream lldb-rpc-gen tool
This commit up
https://github.com/chelcassanova updated
https://github.com/llvm/llvm-project/pull/138031
Rate limit · GitHub
body {
background-color: #f6f8fa;
color: #24292e;
font-family: -apple-system,BlinkMacSystemFont,Segoe
UI,Helvetica,Arial,
https://github.com/chelcassanova updated
https://github.com/llvm/llvm-project/pull/138031
>From ad185638b6369aea18848bcdbb38bd502d75ff71 Mon Sep 17 00:00:00 2001
From: Chelsea Cassanova
Date: Wed, 30 Apr 2025 14:15:39 -0700
Subject: [PATCH] [lldb][RPC] Upstream lldb-rpc-gen tool
This commit up
@@ -0,0 +1,535 @@
+//===-- RPCCommon.cpp
-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM
Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Ap
@@ -0,0 +1,535 @@
+//===-- RPCCommon.cpp
-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM
Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Ap
@@ -0,0 +1,535 @@
+//===-- RPCCommon.cpp
-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM
Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Ap
@@ -0,0 +1,535 @@
+//===-- RPCCommon.cpp
-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM
Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Ap
@@ -0,0 +1,65 @@
+#!/usr/bin/env python3
+# Usage: convert-lldb-header-to-rpc-header.py
+# This scripts takes common LLDB headers (such as lldb-defines.h) and replaces
references to LLDB
+# with those for RPC. This happens for:
+# - namespace definitions
+# - namespace usage
+
@@ -0,0 +1,592 @@
+//===-- RPCServerSourceEmitter.cpp
===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM
Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Ap
https://github.com/chelcassanova edited
https://github.com/llvm/llvm-project/pull/138032
___
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
chelcassanova wrote:
For what it's worth, while these scripts do work for intended purpose for now,
an approach I'd love is to have all this header modification be a subtool of
the `lldb-rpc-gen` tool itself. Subtooling a ClangTool is something I'm not too
sure on how to do so maybe a better C
@@ -0,0 +1,18 @@
+// Copy lldb-rpc-defines.h from source.
+# RUN: mkdir -p %t/input
+# RUN: mkdir -p %t/output
+# RUN: cp %p/../../../../../include/lldb/lldb-defines.h %t/input
+
+// Run the convert script on it, then run the framework include fix on it. The
framework version fix
@@ -0,0 +1,65 @@
+#!/usr/bin/env python3
+# Usage: framework-header-version-fix.py
MAJOR MINOR PATCH
+# This script modifies lldb-rpc-defines.h to uncomment the macro defines used
for the LLDB
+# major, minor and patch values as well as populating their definitions.
+
+import
@@ -0,0 +1,44 @@
+#!/usr/bin/env python3
+# Usage: framework-header-include-fix.py
+# 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():
+
@@ -0,0 +1,65 @@
+#!/usr/bin/env python3
+# Usage: convert-lldb-header-to-rpc-header.py
+# This scripts takes common LLDB headers (such as lldb-defines.h) and replaces
references to LLDB
+# with those for RPC. This happens for:
+# - namespace definitions
+# - namespace usage
+
chelcassanova wrote:
> Ok so if had a very specific situation I wanted to run via lldb-rpc, I could
> write an API test for it? That's cool, if I do find a bug I'd need to write a
> test case anyway.
Yes, you could have an API test that could then get run against liblldbrpc. We
also have deco
@@ -0,0 +1,94 @@
+LLDB RPC Upstreaming Design Doc
+===
+
+This document aims to explain the general structure of the upstreaming patches
for adding LLDB RPC. The 2 primary concepts explained here will be:
+
+* How LLDB RPC is used
+* How the ``lldb-rpc
https://github.com/chelcassanova updated
https://github.com/llvm/llvm-project/pull/138612
Rate limit · GitHub
body {
background-color: #f6f8fa;
color: #24292e;
font-family: -apple-system,BlinkMacSystemFont,Segoe
UI,Helvetica,Arial,
chelcassanova wrote:
Thanks for responding! I'll add a section on testing the tool itself (which we
do with shell tests) and testing the interfaces (which we do by running the
main LLDB API test suite against liblldbrpc).
> Also, is there a way for a developer to set up an lldb-rpc based sessi
https://github.com/chelcassanova created
https://github.com/llvm/llvm-project/pull/138612
This mainly adds as design doc to help follow with the current PRs up for
upstreaming the `lldb-rpc-gen` tool and emitters.
Rate limit · GitHub
body {
backg
https://github.com/chelcassanova updated
https://github.com/llvm/llvm-project/pull/137383
Rate limit · GitHub
body {
background-color: #f6f8fa;
color: #24292e;
font-family: -apple-system,BlinkMacSystemFont,Segoe
UI,Helvetica,Arial,
https://github.com/chelcassanova closed
https://github.com/llvm/llvm-project/pull/136748
___
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
chelcassanova wrote:
I split this large patch up into 3 smaller ones:
This patch upstreams the `lldb-rpc-gen` tool itself as well as its common code:
https://github.com/llvm/llvm-project/pull/138031
This upstreams the server-side emitter:
https://github.com/llvm/llvm-project/pull/138032
This up
@@ -0,0 +1,535 @@
+//===-- RPCCommon.cpp
-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM
Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Ap
https://github.com/chelcassanova updated
https://github.com/llvm/llvm-project/pull/138020
>From 6a100fa2a13c5e8e10981746ea45c7345d3c46c9 Mon Sep 17 00:00:00 2001
From: Chelsea Cassanova
Date: Mon, 28 Apr 2025 10:28:03 -0700
Subject: [PATCH] [lldb][cmake] Error out when building debugserver with
@@ -154,6 +154,19 @@ endif()
add_definitions(-DLLDB_USE_OS_LOG)
+if(CMAKE_OSX_SYSROOT)
+ set(${MIG_SYSROOT} CMAKE_OSX_SYSROOT)
chelcassanova wrote:
Good catch, this doesn't work as-is. I'll update to correct this.
https://github.com/llvm/llvm-project/pull/
https://github.com/chelcassanova updated
https://github.com/llvm/llvm-project/pull/138028
>From c51a312cd3901a1e51d9e210b3efdc89389f0e10 Mon Sep 17 00:00:00 2001
From: Chelsea Cassanova
Date: Wed, 30 Apr 2025 13:37:15 -0700
Subject: [PATCH] [lldb][RPC] Upstream Python scripts
As part of upstre
chelcassanova wrote:
I can add shell tests 👍🏾
https://github.com/llvm/llvm-project/pull/138028
___
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
https://github.com/chelcassanova closed
https://github.com/llvm/llvm-project/pull/138030
___
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
chelcassanova wrote:
Sounds good, I can close this PR then and add the shell tests back in once the
PR for the client-side emitters are up.
https://github.com/llvm/llvm-project/pull/138030
___
lldb-commits mailing list
lldb-commits@lists.llvm.org
http
https://github.com/chelcassanova updated
https://github.com/llvm/llvm-project/pull/138020
>From 350648f15e834a3734ab9fcafb610d27d9c6dd33 Mon Sep 17 00:00:00 2001
From: Chelsea Cassanova
Date: Mon, 28 Apr 2025 10:28:03 -0700
Subject: [PATCH] [lldb][cmake] Error out when building debugserver with
https://github.com/chelcassanova edited
https://github.com/llvm/llvm-project/pull/138020
___
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
@@ -154,6 +154,20 @@ endif()
add_definitions(-DLLDB_USE_OS_LOG)
+if(NOT CMAKE_OSX_SYSROOT)
+ execute_process(COMMAND xcodebuild -version -sdk macosx Path
+OUTPUT_VARIABLE SDKROOT
+ERROR_QUIET
+OUTPUT_STRIP_TRAILING_WHITESPACE)
+
+ if(NOT EXISTS ${SDKROOT})
+
https://github.com/chelcassanova edited
https://github.com/llvm/llvm-project/pull/138020
___
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
chelcassanova wrote:
Just updated the patch to set the `CMAKE_OSX_SYSROOT` variable.
https://github.com/llvm/llvm-project/pull/138020
___
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
https://github.com/chelcassanova updated
https://github.com/llvm/llvm-project/pull/138020
>From 4e7c20930b3f8bb0b8d4503544d278d1a561f0fd Mon Sep 17 00:00:00 2001
From: Chelsea Cassanova
Date: Mon, 28 Apr 2025 10:28:03 -0700
Subject: [PATCH] [lldb][cmake] Error out when building debugserver with
https://github.com/chelcassanova created
https://github.com/llvm/llvm-project/pull/138028
As part of upstreaming LLDB RPC, this commit adds python scripts that are used
by LLDB RPC to modify the public lldb header files for use with RPC.
https://discourse.llvm.org/t/rfc-upstreaming-lldb-rpc/85
https://github.com/chelcassanova created
https://github.com/llvm/llvm-project/pull/138020
CMake 4 no longer sets the `CMAKE_OSX_SYSROOT` variable by default. If you've
updated to CMake 4 on macOS (e.g. with brew) and try building LLDB with
CMake/ninja, this will yield an error when building de
chelcassanova wrote:
Looking at this patch again, I think this can actually be split into 4 patches:
- One that just has the Python scripts
- One that has the shell tests
- One with the emitters (`RPCServerSourceEmitter` and `RPCServerHeaderEmitter`)
- One with the `lldb-rpc-gen` tool and the RPC
https://github.com/chelcassanova closed
https://github.com/llvm/llvm-project/pull/136761
___
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
@@ -1,6 +1,12 @@
add_custom_target(lldb-shell-test-deps)
set_target_properties(lldb-shell-test-deps PROPERTIES FOLDER "LLDB/Tests")
add_dependencies(lldb-shell-test-deps lldb-test-depends)
+if(LLDB_BUILT_STANDALONE)
+ get_target_property(CLANG_RESOURCE_DIR clang-resource-heade
https://github.com/chelcassanova updated
https://github.com/llvm/llvm-project/pull/136761
>From b8fec72b926a1cc02f9f3f4d3666c17aa42dd5d6 Mon Sep 17 00:00:00 2001
From: Chelsea Cassanova
Date: Tue, 22 Apr 2025 13:28:04 -0700
Subject: [PATCH] [lldb][cmake] Add clang resource dir to LLDB shell tes
@@ -0,0 +1,19 @@
+if(LLDB_CODESIGN_IDENTITY)
+ # Use explicit LLDB identity
+ set(LLVM_CODESIGNING_IDENTITY ${LLDB_CODESIGN_IDENTITY})
+else()
+ # Use explicit LLVM identity or default to ad-hoc signing if empty
+ if(NOT LLVM_CODESIGNING_IDENTITY)
+set(LLVM_CODESIGNING_IDE
chelcassanova wrote:
> So could you draft something like that? Separate PR from this.
Absolutely! I know this is a lot of code to review, so anything that can be
done to break all this down is more than something I'm willing to do. I can
write up a design doc in order to better explain exactly
@@ -0,0 +1,61 @@
+#!/usr/bin/env python3
+# Usage: framework-header-version-fix.py
MAJOR MINOR PATCH
+
+import argparse
+import os
+import re
+import subprocess
+
+
+def main():
+parser = argparse.ArgumentParser()
+parser.add_argument("input")
+parser.add_argument("
@@ -0,0 +1,57 @@
+#!/usr/bin/env python3
+# Usage: convert-lldb-header-to-rpc-header.py
+
+import argparse
+import os
+import re
+import subprocess
+
+
+def main():
+parser = argparse.ArgumentParser()
+parser.add_argument("input")
+parser.add_argument("output")
+
@@ -0,0 +1,57 @@
+#!/usr/bin/env python3
+# Usage: convert-lldb-header-to-rpc-header.py
+
+import argparse
+import os
+import re
+import subprocess
+
+
+def main():
+parser = argparse.ArgumentParser()
+parser.add_argument("input")
+parser.add_argument("output")
+
@@ -0,0 +1,57 @@
+#!/usr/bin/env python3
+# Usage: convert-lldb-header-to-rpc-header.py
+
+import argparse
+import os
+import re
+import subprocess
+
+
+def main():
+parser = argparse.ArgumentParser()
+parser.add_argument("input")
+parser.add_argument("output")
+
1 - 100 of 421 matches
Mail list logo