Skip to content

Commit

Permalink
Rename debugger type to avoid conflicting with proper "gdb"
Browse files Browse the repository at this point in the history
  • Loading branch information
nberth committed Jul 26, 2024
1 parent 3e61d84 commit 70bcb5d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
],
"debuggers": [
{
"type": "gdb",
"type": "superbol-gdb",
"languages": ["cobol", "COBOL"],
"program": "./out/src/gdb.js",
"runtime": "node",
Expand Down Expand Up @@ -187,7 +187,7 @@
"description": "New SuperBOL launch request",
"body": {
"name": "${2:SuperBOL: debug launch}",
"type": "gdb",
"type": "superbol-gdb",
"request": "launch",
"target": "$${_:{file}}",
"arguments": "",
Expand All @@ -203,7 +203,7 @@
"description": "New SuperBOL attach local request",
"body": {
"name": "${2:SuperBOL: debug attach local}",
"type": "gdb",
"type": "superbol-gdb",
"request": "attach",
"pid": "${3:0}",
"target": "$${_:{file}}",
Expand All @@ -218,7 +218,7 @@
"description": "New SuperBOL attach remote request",
"body": {
"name": "${2:SuperBOL: debug attach remote}",
"type": "gdb",
"type": "superbol-gdb",
"request": "attach",
"remoteDebugger": "${3:host:port}",
"target": "$${_:{file}}",
Expand Down
12 changes: 6 additions & 6 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ const COBOL_RESERVED_WORDS = ["perform", "move", "to", "set", "add", "subtract",

export function activate(context: vscode.ExtensionContext) {
context.subscriptions.push(
vscode.debug.registerDebugConfigurationProvider('gdb', new GdbConfigurationProvider()),
vscode.debug.registerDebugAdapterDescriptorFactory('gdb', new GdbAdapterDescriptorFactory(new CoverageStatus(), new GDBDebugSession())),
vscode.debug.registerDebugConfigurationProvider('superbol-gdb', new GdbConfigurationProvider()),
vscode.debug.registerDebugAdapterDescriptorFactory('superbol-gdb', new GdbAdapterDescriptorFactory(new CoverageStatus(), new GDBDebugSession())),
vscode.languages.registerEvaluatableExpressionProvider('GnuCOBOL', new GnuCOBOLEvalExpressionFactory()),
vscode.languages.registerEvaluatableExpressionProvider('GnuCOBOL31', new GnuCOBOLEvalExpressionFactory()),
vscode.languages.registerEvaluatableExpressionProvider('GnuCOBOL3.1', new GnuCOBOLEvalExpressionFactory()),
Expand All @@ -33,7 +33,7 @@ class GdbConfigurationProvider implements vscode.DebugConfigurationProvider {
config.name = "SuperBOL: default debug";
}
if (config.type === undefined) {
config.type = "gdb";
config.type = "superbol-gdb";
}
if (config.request === undefined) {
config.request = "launch";
Expand Down Expand Up @@ -79,7 +79,7 @@ class GdbConfigurationProvider implements vscode.DebugConfigurationProvider {
vscode.ProviderResult<vscode.DebugConfiguration[]> {
const launchConfigDefault: vscode.DebugConfiguration = {
name: "SuperBOL: debug (launch)",
type: "gdb",
type: "superbol-gdb",
request: "launch",
preLaunchTask: "SuperBOL: build (debug)",
target: "${file}",
Expand All @@ -93,7 +93,7 @@ class GdbConfigurationProvider implements vscode.DebugConfigurationProvider {

const attachLocalConfiguration: vscode.DebugConfiguration = {
name: "SuperBOL: debug (attach local)",
type: "gdb",
type: "superbol-gdb",
request: "attach",
pid: "${input:pid}",
target: "${file}",
Expand All @@ -105,7 +105,7 @@ class GdbConfigurationProvider implements vscode.DebugConfigurationProvider {

const attachRemoteConfiguration: vscode.DebugConfiguration = {
name: "SuperBOL: debug (attach remote)",
type: "gdb",
type: "superbol-gdb",
request: "attach",
"remote-debugger": "${input:remote-debugger}",
target: "${file}",
Expand Down

0 comments on commit 70bcb5d

Please sign in to comment.