我正在使用backtrace()和backtrace_symbols()函数来输出类似于以下格式的SIGSEGV和其他信号的回溯信息:
0: [0xb750818]
1: /opt/server/libQtScript.so.4(+0x6f42a) [0xb782c42a]
2: /opt/server/libQtScript.so.4(+0x7bffc) [0xb7838ffc]
3: /opt/server/libQtScript.so.4(+0x86946) [0xb7843946]
4: /opt/server/libQtScript.so.4(+0x7c4bc) [0xb78394bc]
5: /opt/server/libQtScript.so.4(+0x86946) [0xb7843946]
6: /opt/server/libQtScript.so.4(+0x9603e) [0xb785303e]
7: /opt/server/libQtScript.so.4(_ZN12QScriptValue4callERKS_RK5QListIS_E+0x2e7) [0xb7891647]
在这种情况下,我对第七个框架很满意,尽管框架1-6给了我一些"+x"地址。
如何在GDB中获取"+0x6f42a"和其他地址的确切行数?而没有描述模块的框架#0是什么意思?