Gdb print to file instead of stdout

后端 未结 8 2006
醉话见心
醉话见心 2020-11-29 17:15

I am running gdb and want to examine one of those unfortunate god objects. It takes many pages (and I have a 24\" monitor turned sideways!) to see the whole thing. For eas

8条回答
  •  旧时难觅i
    2020-11-29 17:54

    You need to enable logging.

    (gdb) set logging on
    

    You can tell it which file to use.

    (gdb) set logging file my_god_object.log
    

    And you can examine current logging configuration.

    (gdb) show logging
    

提交回复
热议问题