microsoft/WinDbg-Samples

Binary instruction translation error

PromiseNoDieForever opened this issue · 1 comments

My code is as follows:
image
discovered by chance,There is a problem with windbg executing this statement (xchg r8d, eax)。
so,I compiled this code and tested it using windbg and ttd。
The windbg compilation instruction is wrong but executed correctly
1
2
But unfortunately, ttd is simulated through instructions, so the operation error
3
4
I hope it can be repaired successfully
This is a compressed package of asm, exe, pdb, run files
Debug.zip

Thanks for reporting this, I wasn't watching for issues reported here. We filed a bug for this in March to the Visual Studio team: https://developercommunity.visualstudio.com/t/MSDIS-is-incorrectly-decoding-some-xchg/10573512?port=1025&fsid=77f913aa-873a-4fa4-ad64-eea268d1ca7f&ref=native&refTime=1727618403552&refUserId=4ea9033d-505a-48ee-844e-5353eccf40ef

Maybe you could upvote this?