开发者

how to import file name / line numbers when using IDApython?

开发者 https://www.devze.com 2022-12-07 21:24 出处:网络
When I use the UI of IDA to load a binary file with debug info, a window which prints "DWARF info found" will come out and I can choose "Import file na开发者_运维知识库mes/line numbers&

When I use the UI of IDA to load a binary file with debug info, a window which prints "DWARF info found" will come out and I can choose "Import file na开发者_运维知识库mes/line numbers" to present the correponding source lines of certain addresses.

However, I find when I using command line to run ida like "idat64 -A -S'script' binary_name", idat64 would not load the DWARF without specific setting.

I tried to find possible setting to load the DWARF infos but failed. Could someone help me solve this problem?

I want to use

ida_nalt.get_source_linnum

and

ida_lines.get_sourcefile

to export the address-to-line mapping informations.

However, without loading the DWARF info, running the scripts will only print invalid results.

0

精彩评论

暂无评论...
验证码 换一张
取 消