Skip to content

Commit fdc2ae1

Browse files
committed
Use newer cdt-gdb-adapter
1 parent d8d4fac commit fdc2ae1

File tree

4 files changed

+6
-11
lines changed

4 files changed

+6
-11
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"lint": "tslint --fix --project tsconfig.json"
2121
},
2222
"dependencies": {
23-
"cdt-gdb-adapter": "0.0.14-next.8084f52.0",
23+
"cdt-gdb-adapter": "0.0.14-next.5638382.0",
2424
"vscode-debugadapter": "^1.26.0",
2525
"vscode-debugprotocol": "^1.26.0"
2626
},

src/cmsis-debug-session.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ export class CmsisDebugSession extends GDBDebugSession {
259259
await this.gdb.sendEnablePrettyPrint();
260260

261261
if (args.runToMain === true) {
262-
await mi.sendBreakOnFunction(this.gdb);
262+
await mi.sendBreakFunctionInsert(this.gdb, 'main');
263263
}
264264

265265
this.sendEvent(new OutputEvent(`Image loaded: ${args.program}`));

src/mi.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,6 @@ export function sendTargetDownload(gdb: GDBBackend) {
4646
return gdb.sendCommand(command);
4747
}
4848

49-
export function sendBreakOnFunction(gdb: GDBBackend, fn: string = 'main') {
50-
const command = `-break-insert -t --function ${fn}`;
51-
return gdb.sendCommand(command);
52-
}
53-
5449
export function sendExecInterrupt(gdb: GDBBackend, threadId?: number) {
5550
let command = '-exec-interrupt';
5651
if (threadId) {

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ builtin-modules@^1.1.1:
5555
resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f"
5656
integrity sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=
5757

58-
59-
version "0.0.14-next.8084f52.0"
60-
resolved "https://registry.yarnpkg.com/cdt-gdb-adapter/-/cdt-gdb-adapter-0.0.14-next.8084f52.0.tgz#e54ba65ddb7c59f89374c5d2e77104056a3a3f03"
61-
integrity sha512-VxL0CNgNbDyYprDnibYipDDaaVlHk/6pqct54IuqNQFf2xGgB0HxFZ2ZMHt1L8HhIJ9kcPByTASrNVyvZNMbjQ==
58+
59+
version "0.0.14-next.5638382.0"
60+
resolved "https://registry.yarnpkg.com/cdt-gdb-adapter/-/cdt-gdb-adapter-0.0.14-next.5638382.0.tgz#43454b7907edde5cbb7bab575d23ed1a6d032f54"
61+
integrity sha512-tci+ng6XA0zXWw4C+ML8q2FoiDR//QwF5OBrwNd8HUbYnLTF6SqOILuzHcFijRT/D0ajrIXFHWy5Krgm9zhxPQ==
6262
dependencies:
6363
node-addon-api "^1.6.2"
6464
vscode-debugadapter "^1.37.1"

0 commit comments

Comments
 (0)