Skip to content

Commit 0fcc415

Browse files
authored
Improve info os processes match (#10398)
1 parent 8431b37 commit 0fcc415

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Extension/src/Debugger/attachToProcess.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ export class RemoteAttachPicker {
200200
pid usr command cores
201201
1 ?
202202
2 ?
203-
3 /usr/bin/sample 0
203+
3 /usr/bin/sample 0,2
204204
4 root /usr/bin/gdbserver --multi :6000 0
205205
206206
Returns an AttachItem array, each item contains a label of "<user >command", and a pid.
@@ -217,7 +217,7 @@ export class RemoteAttachPicker {
217217
for (const line of lines) {
218218
const trimmedLine: string = line.trim();
219219
if (!trimmedLine.endsWith('?')) {
220-
const matches: RegExpMatchArray | null = trimmedLine.match(/^(\d+)\s+(.+?)\s+\d+$/);
220+
const matches: RegExpMatchArray | null = trimmedLine.match(/^(\d+)\s+(.+?)\s+(?:\d+,)*\d+$/);
221221
if (matches?.length === 3) {
222222
const id: string = matches[1];
223223
const userCommand: string = matches[2];

0 commit comments

Comments
 (0)