`TryGetTidFromTargetId()` fails to parse thread ID from `target-id` if format is like `Thread 123.123`

Open
#1,448 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
csharp
Domain
devtools

Research direction

Locate TryGetTidFromTargetId() and reproduce the parsing behavior with the issue's target-id value, Thread 15307.15307. Confirm how the function currently interprets the identifier and update the handling so this format yields the expected thread ID; verify the behavior with the relevant existing tests, if present.

Written by the indexing model from the issue text.

Description

The thread ID is not correctly parsed.

Output from -thread-info 1:

MS_MIDebug: 1: (14914) ->1015^done,threads=[{id="1",target-id="Thread 15307.15307",frame={level="0",addr="0xb6f24aa0",func="_start",args=[],from="/cygdrive/e/WORK/CDK/CYGWIN32/ARM_LINUX_GNU_CROSSTOOLS/V5.3-1/x-tools/arm-unknown-linux-gnueabi/arm-unknown-linux-gnueabi/sysroot/lib/ld-linux.so.3",arch="armv5tej"},state="stopped"}]
Dominant language
C#
Stars
859
Forks
233
Avg merge
1d 6h
Merged PRs (30d)
3

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/MIEngine

All issues in microsoft/MIEngine

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.