Skip to content

Commit

Permalink
fix clearSearch
Browse files Browse the repository at this point in the history
  • Loading branch information
haneefdm committed Aug 11, 2021
1 parent a42ae3a commit 53f392b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
ChangeLog

# V0.4.1
Minor bug fix. The `launch.json` option `clearSearch` was not working for `rttConfig`. Only affected OpenOCD users.
# V0.4.0

This is a major release with a lot of changes and many new features. The `TERMINAL` area of VSCode is utilized a lot to enable bidirectional communication with the firmware. It is used for RTT, SWO and Semi-hosting.
Expand Down
5 changes: 3 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.3.13",
"version": "0.4.1",
"activationEvents": [
"onDebugResolve:cortex-debug"
],
Expand Down Expand Up @@ -2119,6 +2119,5 @@
"watch": "webpack --mode development --watch",
"compile": "webpack --mode development",
"test-compile": "tsc -p ./"
},
"version": "0.4.0"
}
}
2 changes: 1 addition & 1 deletion src/gdb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export class GDBDebugSession extends DebugSession {
this.args.rttConfig.address = '0x' + rttSym.address.toString(16);
this.args.rttConfig.searchSize = Math.max(this.args.rttConfig.searchSize || 0, searchStr.length);
this.args.rttConfig.searchId = searchStr;
this.args.rttConfig.clearSearch = true;
this.args.rttConfig.clearSearch = (this.args.rttConfig.clearSearch === undefined) ? true : this.args.rttConfig.clearSearch;
}
}

Expand Down

0 comments on commit 53f392b

Please sign in to comment.