OllyDbg 无法调试 Visual Studio exe
OllyDbg can't debug visual studio exe
我刚刚用这个简单的代码创建了一个新的vc++ exe:
#include<stdio.h>
#include<string.h>
#include<windows.h>
int ExceptionHandler(void);
int main(int argc,char *argv[]){
char temp[512];
printf("Application launched");
try
{
throw "error";
}
catch (... )
{
ExceptionHandler();
}
return 0;
}
int ExceptionHandler(void)
{
printf("Exception");
return 0;
}
该应用程序非常简单,并创建了一个依赖于kernel32.dll和MSVCR100D.dll的exe文件。
当我尝试将其导入并调试到OllyDbg(我只是想在堆栈窗口中看到SEH链)时,它说"模块'testseh'在代码外部具有入口点(如PE头中指定的)。也许这个文件是自提取或自修改的。当设置断点时请记住它!"并且没有执行代码,它直接跳转到ntdll.dll崩溃部分(实际上exe正在崩溃,但我不能一步一步地执行printf指令)
为什么会有这种行为?exe不依赖于CLI也CLR,我错过了什么?
编译器从olly中获取异常为critical(错误设置)
相关文章:
- 为cl.exe(Visual Studio代码)指定命令行C++版本
- Visual Studio mkl_link_tool.exe链接错误
- 从 exe 文件 (Visual Studio ) 启动时调试断言失败
- 如何在Visual Studio Code中重命名我的a.exe文件?
- 来自Visual Studio中控制台项目的exe文件?
- 更新到 2020 年 5 月版本后,无法在 Visual Studio 2019 中创建.exe文件
- Visual Studio Static Linking for Standalone Exe
- 从Visual Studio项目到文件.exe(Qt)
- Visual Studio not finding cl.exe
- Visual Studio 2017 无法找到 cl.exe
- CMake 和 Visual Studio 2015 - C 编译器 cl.exe 无法编译简单的测试程序
- 是否可以将Visual Studio 2017将C 代码编译到EXE以外的文件类型中
- 安装生成工具后找不到Visual Studio代码MSVC cl.exe
- 如何使用Visual Studio C/C++编译器(cl.exe)来预处理我的objective-C代码
- 在Visual Studio 2017中使用Qt库的CMake项目:运行exe时找不到Qt dll
- Visual Studio(.EXE)导出无法正常工作
- C++ Visual Studio .exe disappears
- Visual Studio .exe文件打开并立即关闭
- Visual Studio .exe 無法執行程式
- OllyDbg 无法调试 Visual Studio exe