How to implement a windbg plugin.
How to implement a windbg plugin
Define EXT_CLASS
#include "lauxlib.h"
class EXT_CLASS : public ExtExtension
{
public:
EXT_COMMAND_METHOD(lua);
};
EXT_DECLARE_GLOBALS();
Impl methods
EXT_COMMAND(luado,
"Execute lua code.",
"{;x,r;lua string;lua code.}")
{
}
Functions can be called in methods:
Get input arguments LPCSTR lua_code = GetUnnamedArgStr(0);
Error Err("Cannot find script in code.\r\n");
Ref: C:\Users\test\Downloads\luadbg-master\luadbg-master\luadbg\luadbg.cpp
- 上一篇 墙 墙 墙 墙.
- 下一篇 用windbg 检查内存泄漏.