[Lldb-commits] [lldb] [lldb-dap] Add attach & corefile templates (PR #118894)
via lldb-commits
lldb-commits at lists.llvm.org
Thu Dec 5 14:47:49 PST 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-lldb
Author: Jonas Devlieghere (JDevlieghere)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/118894.diff
2 Files Affected:
- (modified) lldb/tools/lldb-dap/package-lock.json (+2-2)
- (modified) lldb/tools/lldb-dap/package.json (+24-2)
``````````diff
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"
+ }
}
]
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/118894
More information about the lldb-commits
mailing list