Skip to content

Commit c1f3253

Browse files
committed
Bit more lenient parsing of GDB version number
1 parent 95d3d3e commit c1f3253

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
ChangeLog
22
=========
3+
# V1.6.1
4+
* Bit more lenient parsing of GDB version number for custom builds. We still need to know the version number
5+
36
# V1.6.1
47
* Better error message when using GDB version less than 9. Starting with 1.5.2, we no longer support GDB version <= 8. For most of last year, we have been warning users of this happening in July 2022. This now August 2022 :-)
58

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "1.6.1",
2+
"version": "1.6.2",
33
"preview": false,
44
"activationEvents": [
55
"onDebugResolve:cortex-debug",

src/backend/mi2/mi2.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export class MI2 extends EventEmitter implements IBackend {
134134
}
135135

136136
private parseVersionInfo(str: string) {
137-
const regex = RegExp(/^GNU gdb\s\(.*\)\s?(\d+)\.(\d+)\.[^\r\n]*/gm);
137+
const regex = RegExp(/^GNU gdb\s\(.*\)\s?(\d+)\.(\d+)[^\r\n]*/gm);
138138
const match = regex.exec(str);
139139
if (match !== null) {
140140
str = str.substr(0, match.index);

0 commit comments

Comments
 (0)