Ref:
很不多的功能!
程序已经死了,产生了core,但里面的一段内存数据我怎么取出来存放到文件里面呢?
(gdb) help dump
Dump target code/data to a local file.
List of dump subcommands:
dump binary -- Write target code/data to a raw binary file
dump ihex -- Write target code/data to an intel hex file
dump memory -- Write contents of memory to a raw binary file
dump srec -- Write target code/data to an srec file
dump tekhex -- Write target code/data to a tekhex file
dump value -- Write the value of an expression to a raw binary file
Type "help dump" followed by dump subcommand name for full documentation.
Type "apropos word" to search for commands related to "word".
Command name abbreviations are allowed if unambiguous.
EX:
dump binary memory local_filename start_addr end_addr
阅读(2343) | 评论(0) | 转发(0) |