Skip to content

Commit

Permalink
Update to adapter 0.0.30 (cwd, environment and complex vars)
Browse files Browse the repository at this point in the history
Adds support for these features in the adapter:

- setting cwd for gdb
  - eclipse-cdt-cloud/cdt-gdb-adapter#306
- better handling of complex variables:
  - eclipse-cdt-cloud/cdt-gdb-adapter#304
- environment variables
  - eclipse-cdt-cloud/cdt-gdb-adapter#303

And the new launch.json settings needed to enable the above.

Along with a variety of bug fixes in the adapter.
  • Loading branch information
jonahgraham committed Oct 12, 2023
1 parent b8a6ad6 commit fdce62d
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 5 deletions.
73 changes: 72 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,21 @@
"description": "Path to gdb",
"default": "gdb"
},
"cwd": {
"type": "string",
"description": "Working directory (cwd) to use when launching gdb. Defaults to the directory of the 'program'"
},
"environment": {
"additionalProperties": {
"type": [
"string",
"null"
]
},
"default": {},
"description": "Environment variables to use when launching gdb, defined as a key-value pairs. Use null value to remove variable. For example:\n\"environment\": {\n \"VARNAME\": \"value\",\n \"PATH\": \"/new/item:${env:PATH}\",\n \"REMOVEME\": null\n}",
"type": "object"
},
"program": {
"type": "string",
"description": "Path to the program to be launched",
Expand Down Expand Up @@ -126,6 +141,21 @@
"description": "Path to gdb",
"default": "gdb"
},
"cwd": {
"type": "string",
"description": "Working directory (cwd) to use when launching gdb. Defaults to the directory of the 'program'"
},
"environment": {
"additionalProperties": {
"type": [
"string",
"null"
]
},
"default": {},
"description": "Environment variables to use when launching gdb, defined as a key-value pairs. Use null value to remove variable. For example:\n\"environment\": {\n \"VARNAME\": \"value\",\n \"PATH\": \"/new/item:${env:PATH}\",\n \"REMOVEME\": null\n}",
"type": "object"
},
"program": {
"type": "string",
"description": "Path to the program to be debugged",
Expand Down Expand Up @@ -211,6 +241,21 @@
"description": "Path to gdb",
"default": "gdb"
},
"cwd": {
"type": "string",
"description": "Working directory (cwd) to use when launching gdb. Defaults to the directory of the 'program'"
},
"environment": {
"additionalProperties": {
"type": [
"string",
"null"
]
},
"default": {},
"description": "Environment variables to use when launching gdb, defined as a key-value pairs. Use null value to remove variable. For example:\n\"environment\": {\n \"VARNAME\": \"value\",\n \"PATH\": \"/new/item:${env:PATH}\",\n \"REMOVEME\": null\n}",
"type": "object"
},
"program": {
"type": "string",
"description": "Path to the program to be launched",
Expand Down Expand Up @@ -313,6 +358,17 @@
"description": "Specifies the working directory of server (defaults to the working directory of gdb)",
"default": ""
},
"environment": {
"additionalProperties": {
"type": [
"string",
"null"
]
},
"default": {},
"description": "Environment variables to use when launching server (defaults to the environment used to launch gdb, defined as a key-value pairs. Use null value to remove variable. For example:\n\"environment\": {\n \"VARNAME\": \"value\",\n \"PATH\": \"/new/item:${env:PATH}\",\n \"REMOVEME\": null\n}",
"type": "object"
},
"server": {
"type": "string",
"description": "The executable for the target server to launch (e.g. gdbserver or JLinkGDBServerCLExe) (defaults to gdbserver)",
Expand Down Expand Up @@ -426,6 +482,21 @@
"description": "Path to gdb",
"default": "gdb"
},
"cwd": {
"type": "string",
"description": "Working directory (cwd) to use when launching gdb. Defaults to the directory of the 'program'"
},
"environment": {
"additionalProperties": {
"type": [
"string",
"null"
]
},
"default": {},
"description": "Environment variables to use when launching gdb, defined as a key-value pairs. Use null value to remove variable. For example:\n\"environment\": {\n \"VARNAME\": \"value\",\n \"PATH\": \"/new/item:${env:PATH}\",\n \"REMOVEME\": null\n}",
"type": "object"
},
"program": {
"type": "string",
"description": "Path to the program to be debugged",
Expand Down Expand Up @@ -668,7 +739,7 @@
},
"dependencies": {
"cdt-amalgamator": "^0.0.11",
"cdt-gdb-adapter": "^0.0.28",
"cdt-gdb-adapter": "^0.0.30",
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -604,10 +604,10 @@ cdt-amalgamator@^0.0.11:
"@vscode/debugadapter-testsupport" "^1.59.0"
"@vscode/debugprotocol" "^1.59.0"

cdt-gdb-adapter@^0.0.28:
version "0.0.28"
resolved "https://registry.yarnpkg.com/cdt-gdb-adapter/-/cdt-gdb-adapter-0.0.28.tgz#6170bd6f7c2a8a94ed44b630ae545fe819027056"
integrity sha512-iMrGLxGL7XL6364LRUBSfIT8DMIOkOsnE7/qIQO2Th7GhsHs39vXjKOMToJVsUWU0nGspT9xkJ+xX30F7HHWUQ==
cdt-gdb-adapter@^0.0.30:
version "0.0.30"
resolved "https://registry.yarnpkg.com/cdt-gdb-adapter/-/cdt-gdb-adapter-0.0.30.tgz#ccefb4c7f4bc86f233584627d963b1904fdd6033"
integrity sha512-EDbAo5kfG06jtLh/BOViuI0CK40nlcqEYpl8+9DqpZr1dv0v64EmwZNu25OYQ5MXL1j/ohBVhO1E43FhfJIx6A==
dependencies:
"@vscode/debugadapter" "^1.59.0"
"@vscode/debugprotocol" "^1.59.0"
Expand Down

0 comments on commit fdce62d

Please sign in to comment.