Using gdb to convert addresses to lines

后端 未结 2 1328
你的背包
你的背包 2021-01-30 04:35

I have a stack trace generated by a stripped application which looks like this:

 *** Check failure stack trace: ***
    @     0x7f0e442d392d  (unknown)
    @             


        
2条回答
  •  盖世英雄少女心
    2021-01-30 04:50

    Per the OP, the command in GDB to find the source line of code from an address is:

    info line *0x10045740
    

    Edit: Replaced "info symbol 0x10045740" which won't work under certain conditions (thanks @Thomasa88).

提交回复
热议问题