Skip to content

Commit 70a82af

Browse files
committed
1、solve the problem of failed parsing of STL containers
1 parent 9fb2875 commit 70a82af

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/backend/gdb_expansion.ts

+5
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,11 @@ export function expandValue(variableCreate: Function, value: string, root: strin
190190
return parseCString();
191191
else if (value[0] == '{')
192192
return parseTupleOrList();
193+
else if(value.startsWith("std::")){
194+
const eqPos = value.indexOf("=");
195+
value = value.substring(eqPos + 1).trim();
196+
return parseValue();
197+
}
193198
else
194199
return parsePrimitive();
195200
};

0 commit comments

Comments
 (0)