diff --git a/includes/_withcontent.vp b/includes/_withcontent.vp index 394a0bc..8906900 100644 --- a/includes/_withcontent.vp +++ b/includes/_withcontent.vp @@ -73,6 +73,8 @@ def _find_provider(field_name: str) -> t.CPtr: stack: _ProviderStack | t.CPtr = _get_stack() stdio.printf("[wdbg] find field=%s top=%lu\n", field_name, stack.top) for i in range(stack.top - 1, -1, -1): + stdio.printf("[wdbg] find cmp i=%d names_ptr=%p names_str=%s field=%s\n", + i, stack.names[i], (str)(stack.names[i]), field_name) # 字段名用 strcmp 内容比较:编译器对每次 create_global_string 生成 # 独立的字符串常量(TPV 不去重),push/find 的指针地址不同, # 指针 == 永假会导致 provider 匹配失败(__mbuddy__ 注入不上)。