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

via lldb-commits lldb-commits at lists.llvm.org
Thu Dec 5 16:20:17 PST 2024


Author: Jonas Devlieghere
Date: 2024-12-05T16:20:11-08:00
New Revision: 244b207d3c2e5a2a72cd4470829ac39c653c406a

URL: https://github.com/llvm/llvm-project/commit/244b207d3c2e5a2a72cd4470829ac39c653c406a
DIFF: https://github.com/llvm/llvm-project/commit/244b207d3c2e5a2a72cd4470829ac39c653c406a.diff

LOG: [lldb-dap] Add attach & corefile templates (#118894)

Added: 
    

Modified: 
    lldb/tools/lldb-dap/package-lock.json
    lldb/tools/lldb-dap/package.json

Removed: 
    


################################################################################
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