[Lldb-commits] [lldb] [lldb-dap] Add attach & corefile templates (PR #118894)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Thu Dec 5 14:47:18 PST 2024


https://github.com/JDevlieghere created https://github.com/llvm/llvm-project/pull/118894

None

>From 0863b603d0bdf53e977f707d58083cf505fa0f29 Mon Sep 17 00:00:00 2001
From: Jonas Devlieghere <jonas at devlieghere.com>
Date: Thu, 5 Dec 2024 14:46:42 -0800
Subject: [PATCH] [lldb-dap] Add attach & corefile templates

---
 lldb/tools/lldb-dap/package-lock.json |  4 ++--
 lldb/tools/lldb-dap/package.json      | 26 ++++++++++++++++++++++++--
 2 files changed, 26 insertions(+), 4 deletions(-)

diff --git a/lldb/tools/lldb-dap/package-lock.json b/lldb/tools/lldb-dap/package-lock.json
index 8663659715590a..d1cb6d00ecf566 100644
--- a/lldb/tools/lldb-dap/package-lock.json
+++ b/lldb/tools/lldb-dap/package-lock.json
@@ -1,12 +1,12 @@
 {
   "name": "lldb-dap",
-  "version": "0.2.6",
+  "version": "0.2.8",
   "lockfileVersion": 3,
   "requires": true,
   "packages": {
     "": {
       "name": "lldb-dap",
-      "version": "0.2.6",
+      "version": "0.2.8",
       "license": "Apache 2.0 License with LLVM exceptions",
       "devDependencies": {
         "@types/node": "^18.11.18",
diff --git a/lldb/tools/lldb-dap/package.json b/lldb/tools/lldb-dap/package.json
index 6079edb5a2189a..bbe65e1f73fd8c 100644
--- a/lldb/tools/lldb-dap/package.json
+++ b/lldb/tools/lldb-dap/package.json
@@ -1,7 +1,7 @@
 {
   "name": "lldb-dap",
   "displayName": "LLDB DAP",
-  "version": "0.2.7",
+  "version": "0.2.8",
   "publisher": "llvm-vs-code-extensions",
   "homepage": "https://lldb.llvm.org",
   "description": "LLDB debugging from VSCode",
@@ -141,7 +141,7 @@
     "debuggers": [
       {
         "type": "lldb-dap",
-        "label": "Native LLDB Debugger",
+        "label": "LLDB DAP Debugger",
         "program": "./bin/lldb-dap",
         "windows": {
           "program": "./bin/lldb-dap.exe"
@@ -508,6 +508,28 @@
               "env": [],
               "cwd": "^\"\\${workspaceRoot}\""
             }
+          },
+          {
+            "label": "LLDB: Attach",
+            "description": "",
+            "body": {
+              "type": "lldb-dap",
+              "request": "attach",
+              "name": "${2:Attach}",
+              "program": "${1:<your program>}",
+              "waitFor": true
+            }
+          },
+          {
+            "label": "LLDB: Load Coredump",
+            "description": "",
+            "body": {
+              "type": "lldb-dap",
+              "request": "attach",
+              "name": "${2:Core}",
+              "program": "${1:<your program>}",
+              "coreFile": "${1:<your program>}.core"
+            }
           }
         ]
       }



More information about the lldb-commits mailing list