зеркало из https://github.com/microsoft/DbgShell.git
parse ~~[xxxx] syntax (#96)
This commit is contained in:
Родитель
7cf3747681
Коммит
39b61d1678
|
@ -961,6 +961,14 @@ function ~x
|
|||
{
|
||||
Get-DbgUModeThreadInfo -Current
|
||||
}
|
||||
elseif($threadId -match '~\[\s*([0-9a-f]{1,4})\s*\]') {
|
||||
[Uint32] $TID = 0
|
||||
if( ![UInt32]::TryParse($matches[1], [System.Globalization.NumberStyles]::HexNumber, $null, [ref] $TID ) )
|
||||
{
|
||||
throw "Invalid TID: $($matches[1])"
|
||||
}
|
||||
Get-DbgUModeThreadInfo -SystemID $TID
|
||||
}
|
||||
else
|
||||
{
|
||||
[UInt32] $uid = 0
|
||||
|
|
|
@ -1018,7 +1018,7 @@ namespace MS.Dbg
|
|||
} // end _TryHandleBangCommand()
|
||||
|
||||
|
||||
private static Regex sm_threadCmdPat = new Regex( @"~\s*(?<id>\d+|\.|#|\*)?\s*(?<command>.*)\z", RegexOptions.Singleline );
|
||||
private static Regex sm_threadCmdPat = new Regex( @"~\s*(?<id>\d+|~\[[0-9a-fA-F]{1,4}\]|\.|#|\*)?\s*(?<command>.*)\z", RegexOptions.Singleline );
|
||||
|
||||
private bool _TryHandleThreadCommand( CommandLookupEventArgs clea )
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче