Skip to content

Commit 5b6a49a

Browse files
committed
Rename to "RTL Debugger".
1 parent 48019b5 commit 5b6a49a

File tree

10 files changed

+109
-126
lines changed

10 files changed

+109
-126
lines changed

CHANGELOG.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# Change Log
22

3-
All notable changes to the "cxxrtldebugger" extension will be documented in this file.
4-
5-
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
3+
All notable changes to the "RTL Debugger" extension will be documented in this file.
64

75
## [Unreleased]
86

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# CXXRTL Debugger for VSCode
1+
# RTL Debugger for VSCode
22

33
TODO
44

package-lock.json

Lines changed: 4 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "cxxrtldebugger",
3-
"displayName": "CXXRTL Debugger",
2+
"name": "rtl-debugger",
3+
"displayName": "RTL Debugger",
44
"description": "Debugger for HDLs supported by the open-source toolchain: Amaranth, Verilog, VHDL, ...",
55
"version": "0.0.0",
66
"engines": {
@@ -13,32 +13,32 @@
1313
"main": "./out/extension.js",
1414
"contributes": {
1515
"configuration": {
16-
"id": "CXXRTLDebugger",
16+
"id": "RTLDebugger",
1717
"type": "object",
18-
"title": "CXXRTL Debugger",
18+
"title": "RTL Debugger",
1919
"$comment": "UPSTREAM: Unfortunately there is no way to control the formatting of the extension name within the setting title. See microsoft/vscode#103592",
2020
"properties": {
21-
"cxxrtlDebugger.command": {
21+
"rtlDebugger.command": {
2222
"type": ["array"],
2323
"items": {
2424
"type": "string"
2525
},
2626
"minItems": 1,
2727
"description": "Specifies the command to run when launching a debug session."
2828
},
29-
"cxxrtlDebugger.cwd": {
29+
"rtlDebugger.cwd": {
3030
"type": "string",
3131
"default": "${workspaceFolder}",
3232
"description": "Specifies the working directory for the launch command."
3333
},
34-
"cxxrtlDebugger.port": {
34+
"rtlDebugger.port": {
3535
"type": "integer",
3636
"minimum": 1,
3737
"maximum": 65535,
3838
"default": 6618,
3939
"description": "Specifies the port that the CXXRTL agent within the debug session is listening at."
4040
},
41-
"cxxrtlDebugger.displayStyle": {
41+
"rtlDebugger.displayStyle": {
4242
"enum": ["Verilog", "VHDL", "Python"],
4343
"default": "Verilog",
4444
"markdownDescription": "Specifies the display format for variables."
@@ -47,123 +47,123 @@
4747
},
4848
"commands": [
4949
{
50-
"command": "cxxrtlDebugger.startSession",
51-
"category": "CXXRTL Debugger",
50+
"command": "rtlDebugger.startSession",
51+
"category": "RTL Debugger",
5252
"title": "Start Session"
5353
},
5454
{
55-
"command": "cxxrtlDebugger.stopSession",
56-
"category": "CXXRTL Debugger",
55+
"command": "rtlDebugger.stopSession",
56+
"category": "RTL Debugger",
5757
"title": "Stop Session"
5858
},
5959
{
60-
"command": "cxxrtlDebugger.runSimulation",
61-
"category": "CXXRTL Debugger",
60+
"command": "rtlDebugger.runSimulation",
61+
"category": "RTL Debugger",
6262
"title": "Run Simulation"
6363
},
6464
{
65-
"command": "cxxrtlDebugger.runSimulationUntil",
66-
"category": "CXXRTL Debugger",
65+
"command": "rtlDebugger.runSimulationUntil",
66+
"category": "RTL Debugger",
6767
"title": "Run Simulation Until..."
6868
},
6969
{
70-
"command": "cxxrtlDebugger.pauseSimulation",
71-
"category": "CXXRTL Debugger",
70+
"command": "rtlDebugger.pauseSimulation",
71+
"category": "RTL Debugger",
7272
"title": "Pause Simulation"
7373
},
7474
{
75-
"command": "cxxrtlDebugger.stepForward",
76-
"category": "CXXRTL Debugger",
75+
"command": "rtlDebugger.stepForward",
76+
"category": "RTL Debugger",
7777
"title": "Step Forward"
7878
},
7979
{
80-
"command": "cxxrtlDebugger.stepBackward",
81-
"category": "CXXRTL Debugger",
80+
"command": "rtlDebugger.stepBackward",
81+
"category": "RTL Debugger",
8282
"title": "Step Backward"
8383
}
8484
],
8585
"viewsContainers": {
8686
"activitybar": [
8787
{
88-
"id": "cxxrtlDebugger",
89-
"title": "CXXRTL Debugger",
88+
"id": "rtlDebugger",
89+
"title": "RTL Debugger",
9090
"icon": "media/chip-debug.svg"
9191
}
9292
]
9393
},
9494
"views": {
95-
"cxxrtlDebugger": [
95+
"rtlDebugger": [
9696
{
97-
"id": "cxxrtlDebugger.hierarchy",
97+
"id": "rtlDebugger.hierarchy",
9898
"name": "Hierarchy"
9999
},
100100
{
101-
"id": "cxxrtlDebugger.variables",
101+
"id": "rtlDebugger.variables",
102102
"name": "Variables"
103103
}
104104
]
105105
},
106106
"viewsWelcome": [
107107
{
108-
"view": "cxxrtlDebugger.hierarchy",
109-
"contents": "The debug session is not running.\n[Start Session](command:cxxrtlDebugger.startSession)",
110-
"when": "cxxrtlDebugger.sessionStatus == absent"
108+
"view": "rtlDebugger.hierarchy",
109+
"contents": "The debug session is not running.\n[Start Session](command:rtlDebugger.startSession)",
110+
"when": "rtlDebugger.sessionStatus == absent"
111111
},
112112
{
113-
"view": "cxxrtlDebugger.hierarchy",
113+
"view": "rtlDebugger.hierarchy",
114114
"contents": "The debug session is initializing...",
115-
"when": "cxxrtlDebugger.sessionStatus == starting"
115+
"when": "rtlDebugger.sessionStatus == starting"
116116
},
117117
{
118-
"view": "cxxrtlDebugger.hierarchy",
118+
"view": "rtlDebugger.hierarchy",
119119
"contents": "There are no scopes in the simulation.",
120-
"when": "cxxrtlDebugger.sessionStatus == running"
120+
"when": "rtlDebugger.sessionStatus == running"
121121
},
122122
{
123-
"view": "cxxrtlDebugger.variables",
123+
"view": "rtlDebugger.variables",
124124
"contents": "The selected scope is empty."
125125
}
126126
],
127127
"menus": {
128128
"commandPalette": [
129129
{
130-
"command": "cxxrtlDebugger.startSession",
131-
"when": "cxxrtlDebugger.sessionStatus == absent"
130+
"command": "rtlDebugger.startSession",
131+
"when": "rtlDebugger.sessionStatus == absent"
132132
},
133133
{
134-
"command": "cxxrtlDebugger.stopSession",
135-
"when": "cxxrtlDebugger.sessionStatus == running"
134+
"command": "rtlDebugger.stopSession",
135+
"when": "rtlDebugger.sessionStatus == running"
136136
},
137137
{
138-
"command": "cxxrtlDebugger.runSimulation",
139-
"when": "cxxrtlDebugger.sessionStatus == running && cxxrtlDebugger.simulationStatus == paused"
138+
"command": "rtlDebugger.runSimulation",
139+
"when": "rtlDebugger.sessionStatus == running && rtlDebugger.simulationStatus == paused"
140140
},
141141
{
142-
"command": "cxxrtlDebugger.runSimulationUntil",
143-
"when": "cxxrtlDebugger.sessionStatus == running && cxxrtlDebugger.simulationStatus == paused"
142+
"command": "rtlDebugger.runSimulationUntil",
143+
"when": "rtlDebugger.sessionStatus == running && rtlDebugger.simulationStatus == paused"
144144
},
145145
{
146-
"command": "cxxrtlDebugger.pauseSimulation",
147-
"when": "cxxrtlDebugger.sessionStatus == running && cxxrtlDebugger.simulationStatus == running"
146+
"command": "rtlDebugger.pauseSimulation",
147+
"when": "rtlDebugger.sessionStatus == running && rtlDebugger.simulationStatus == running"
148148
},
149149
{
150-
"command": "cxxrtlDebugger.stepForward",
151-
"when": "cxxrtlDebugger.sessionStatus == running"
150+
"command": "rtlDebugger.stepForward",
151+
"when": "rtlDebugger.sessionStatus == running"
152152
},
153153
{
154-
"command": "cxxrtlDebugger.stepBackward",
155-
"when": "cxxrtlDebugger.sessionStatus == running"
154+
"command": "rtlDebugger.stepBackward",
155+
"when": "rtlDebugger.sessionStatus == running"
156156
}
157157
]
158158
}
159159
},
160160
"scripts": {
161-
"vscode:prepublish": "npm run compile",
162161
"compile": "tsc -p ./",
163162
"watch": "tsc -watch -p ./",
164-
"pretest": "npm run compile && npm run lint",
165163
"lint": "eslint src --ext ts",
166-
"test": "vscode-test"
164+
"pretest": "npm run compile && npm run lint",
165+
"test": "vscode-test",
166+
"vscode:prepublish": "npm run compile"
167167
},
168168
"devDependencies": {
169169
"@types/vscode": "^1.84.0",

src/connection.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ export class CXXRTLConnection {
195195
}
196196

197197
private sendPacket(packet: any) {
198-
console.log("[CXXRTL Debugger] C>S:", packet);
198+
console.log("[RTL Debugger] C>S:", packet);
199199
this.stream.write(JSON.stringify(packet) + '\0');
200200
}
201201

@@ -219,7 +219,7 @@ export class CXXRTLConnection {
219219
}
220220
// At this point, we have a complete packet in chunks inside `buffer`.
221221
const packet = JSON.parse(buffer.join(''));
222-
console.log("[CXXRTL Debugger] S>C:", packet);
222+
console.log("[RTL Debugger] S>C:", packet);
223223
resolve(packet);
224224
// Remove the callbacks.
225225
stream.off('data', onData);

src/debugger.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ export class CXXRTLDebugger {
4444
readonly onDidChangeLatestTime: vscode.Event<TimePoint> = this._onDidChangeLatestTime.event;
4545

4646
constructor() {
47-
this.statusItem = vscode.window.createStatusBarItem('cxxrtlDebugger', vscode.StatusBarAlignment.Left, 10);
47+
this.statusItem = vscode.window.createStatusBarItem('rtlDebugger', vscode.StatusBarAlignment.Left, 10);
4848
this.statusItem.tooltip = 'RTL Debugger Status';
49-
this.statusItem.command = 'cxxrtlDebugger.runPauseSimulation';
49+
this.statusItem.command = 'rtlDebugger.runPauseSimulation';
5050
this.onDidChangeSessionStatus((_state) => this.updateStatusItem());
5151
this.onDidChangeCurrentTime((_time) => this.updateStatusItem());
5252
this.onDidChangeSimulationStatus((_state) => this.updateStatusItem());
@@ -89,7 +89,7 @@ export class CXXRTLDebugger {
8989
return;
9090
}
9191

92-
const configuration = vscode.workspace.getConfiguration('cxxrtlDebugger');
92+
const configuration = vscode.workspace.getConfiguration('rtlDebugger');
9393
if (configuration.command.length !== 0) {
9494
this.terminal = vscode.window.createTerminal({
9595
name: "CXXRTL Simulation",
@@ -101,7 +101,7 @@ export class CXXRTLDebugger {
101101
this.setSessionStatus(CXXRTLSessionStatus.Starting);
102102

103103
const processId = await this.terminal.processId;
104-
console.log("[CXXRTL Debugger] Launched process %d", processId);
104+
console.log("[RTL Debugger] Launched process %d", processId);
105105

106106
setTimeout(() => {
107107
const socket = net.createConnection({ port: configuration.port, host: '::1' }, () => {
@@ -113,14 +113,14 @@ export class CXXRTLDebugger {
113113
vscode.window.showErrorMessage(`The CXXRTL server has returned an error: ${serverError.message}`);
114114
},
115115
(clientError) => {
116-
vscode.window.showErrorMessage(`The CXXRTL debugger has encountered an error: ${clientError.message}`);
116+
vscode.window.showErrorMessage(`The RTL debugger has encountered an error: ${clientError.message}`);
117117
});
118118

119119
const _capabilities = await this.connection.exchangeGreeting();
120120
this._scopes = await this.connection.listScopes();
121121
this.setSessionStatus(CXXRTLSessionStatus.Running);
122122
this.updateSimulationStatus();
123-
console.log("[CXXRTL Debugger] Initialized");
123+
console.log("[RTL Debugger] Initialized");
124124
})().catch(() => {
125125
this.stopSession();
126126
});
@@ -144,7 +144,7 @@ export class CXXRTLDebugger {
144144
const OpenSettings = "Open Settings";
145145
const selection = await vscode.window.showErrorMessage("Configure the launch command to start a debug session.", OpenSettings);
146146
if (selection === OpenSettings) {
147-
vscode.commands.executeCommand('workbench.action.openSettings', 'cxxrtlDebugger.command');
147+
vscode.commands.executeCommand('workbench.action.openSettings', 'rtlDebugger.command');
148148
}
149149
}
150150
}

0 commit comments

Comments
 (0)