行业解决方案查看所有行业解决方案
IDA 用于解决软件行业的关键问题。
发布时间:2023-04-21 11: 16: 26
Action name: LoadHeaderFile
This command allows you to apply type declarations from a C header file to the program.
IDA reads and parses the specified header file as a C compiler does. In other words, it mimics the front-end of a C compiler with some restrictions:
- only type declarations are allowed. The function definitions
in the input file are skipped
- not all C++ header files are not supported, only simple classes can
be parsed
- the compiler specific predefined macros are not defined,
you have to define them manually in the header file
Don't forget to specify the compiler and memory model in the compiler setup dialog box before loading a header file.
All type declarations found in the input file are stored in the current database in the form of a type library. These type declarations can be used to define new structure and enumeration definitions by pressing "Add standard structure" or "Add standard enum" buttons in the Add enum type... and Add struct type... dialog boxes.
In the case of an error in the input file, the error messages appear in the message window. In any case, the function declarations that are already parsed are not deleted from the database. IDA stops parsing the input file when 20 errors occur.
IDA 7.7 introduced an alternative header file parser based on libclang.
See also Load... submenu commands. Local types window IDAClang plugin
中文翻译:
名称:LoadHeaderFile
此命令允许您将C头文件中的类型声明应用于程序。
IDA像C编译器一样读取和解析指定的头文件。换句话说,它模仿C编译器的前端,但有一些限制:只允许类型声明。跳过输入文件中的函数定义-并非所有C++头文件都不受支持,只能解析简单的类-未定义编译器特定的预定义宏,你必须在头文件中手动定义它们。
在加载头文件之前,不要忘记在编译器设置对话框中指定编译器和内存模型。
在输入文件中找到的所有类型声明都以类型库的形式存储在当前数据库中。这些类型声明可用于定义新的结构和枚举定义,方法是在
Add enum type。。。
andAdd结构类型。。。对话框。
如果输入文件中出现错误,错误消息将显示在消息窗口中。在任何情况下,已经解析的函数声明都不会从数据库中删除。当出现20个错误时,IDA停止解析输入文件。
IDA 7.7引入了一个基于libclang的替代头文件parserbox。
另请参阅加载。。。子菜单命令。本地类型窗口
展开阅读全文
︾
读者也喜欢这些内容:
IDA Mac反编译怎么安装配置 IDA Mac反编译附加进程失败怎么排查
在Mac上用IDA,常见卡点通常不是打开文件,而是两步,一步是反编译能力没有真正装好或授权没识别到,另一步是本地附加进程时被macOS权限机制拦住。Hex-Rays官方安装文档、反编译说明和macOS调试教程其实把这两件事都讲得很清楚,按官方路径走,排障会快很多。...
阅读全文 >
IDA反编exe怎么处理入口点 IDA反编exe导入符号后仍无函数名怎么改善
exe进IDA后第一眼最容易卡住两件事:入口点跳过去像一团乱麻,不知道从哪里开始顺;导入了符号却仍然满屏sub_,看起来像没导入成功。处理这类问题不要凭感觉乱点,按固定顺序把入口点与加载口径对齐,再把符号匹配、库函数识别、函数边界恢复三条线分别处理,通常就能明显提升可读性。...
阅读全文 >
IDA Pro快捷键在哪里设置 IDA Pro快捷键怎么恢复默认
在IDA Pro里用快捷键提速,前提是你能找到统一的快捷键管理入口,并且在发生冲突或误改后能把键位快速拉回到可用状态。比较稳妥的做法是先用内置的Shortcut editor集中管理快捷键,再用单项恢复与全量重置把风险控制住,同时把常用动作的键位做一次简单留档,避免换机器或升级后又回到反复适应的状态。...
阅读全文 >
IDA Pro Portal许可和程序下载安装
IDA Pro Portal许可和程序下载安装。Hex-rays IDA 现采用全新的Portal帐户中心交付方式,用户购买后登录Hex-rays Portal 获取许可和程序,不再邮件发送许可文件和程序。...
阅读全文 >