ad /q * ;aS MyVar 0x7b; .block { ;aS /x ${/v:MyVar} ${MyVar}+0x1; .block { .printf "MyVar1=0x%x\n",${MyVar}; .block { .printf "MyVar2=0x%x\n",${MyVar}; } .printf "MyVar3=0x%x\n",${MyVar}; } .block { .printf "MyVar4=0x%x\n",${MyVar}; } } .block { .printf "MyVar5=0x%x\n",${MyVar}; } al;
以下是执行该脚本后的结果输出:
0:000> $$><c:\windbg.wds MyVar1=0x7b MyVar2=0x7b MyVar3=0x7b MyVar4=0x7b MyVar5=0x7c Alias Value ------- ------- MyVar 0x7c为什么不是输出MyVar1=0x7c、MyVar2=0x7c、MyVar3=0x7c、MyVar4=0x7c、MyVar5=0x7c啊?
0:000> $$><c:\windbg.wds MyVar1=0x7b MyVar2=0x7b MyVar3=0x7b MyVar4=0x7b MyVar5=0x7c Alias Value ------- ------- MyVar 0x7c
为什么不是输出MyVar1=0x7c、MyVar2=0x7c、MyVar3=0x7c、MyVar4=0x7c、MyVar5=0x7c啊?
为什么不是输出