summaryrefslogtreecommitdiff
path: root/src/debug/ee/amd64/amd64walker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/debug/ee/amd64/amd64walker.cpp')
-rw-r--r--src/debug/ee/amd64/amd64walker.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/debug/ee/amd64/amd64walker.cpp b/src/debug/ee/amd64/amd64walker.cpp
index 836d21486e..39e97841b4 100644
--- a/src/debug/ee/amd64/amd64walker.cpp
+++ b/src/debug/ee/amd64/amd64walker.cpp
@@ -131,10 +131,11 @@ void NativeWalker::Decode()
{
case 0xff:
{
-
BYTE modrm = *ip++;
- _ASSERT(modrm != NULL);
+ // Ignore "inc dword ptr [reg]" instructions
+ if (modrm == 0)
+ break;
BYTE mod = (modrm & 0xC0) >> 6;
BYTE reg = (modrm & 0x38) >> 3;