我有核心轉儲文件。我在導致核心轉儲和核心文件的GDB路徑中保存了c二進制應用程序(使用Debug ON選項構建)。函數名不顯示在GDB中
但是當我做GDB
,我下面獲取堆棧信息:
[email protected]:/abc/def/ghi/appln [css_absmin] gdb application_name core_1206
HP gdb 3.0 for PA-RISC 1.1 or 2.0 (narrow), HP-UX 11.00.
Copyright 1986 - 2001 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest 3.0 (based on GDB) is covered by the
GNU General Public License. Type "show copying" to see the conditions to
change it and/or distribute copies. Type "show warranty" for warranty/support.
..
warning: exec file is newer than core file.
Core was generated by 'application_name'.
Program terminated with signal 11, Segmentation fault.
#0 0xc0199640 in ??()
(gdb) where
#0 0xc0199640 in ??()
(gdb) bt
#0 0xc0199640 in ??()
(gdb)
的C二元在PA-RISC(UNIX)編譯。
如何獲得有問題的函數名稱?
可能是在剝離的二進制文件中失敗。使用'bt'來查看完整的回溯。 –
在這裏尋找[可能的幫助](http://stackoverflow.com/questions/8390881/gdb-doesnt-show-function-names?rq=1) –
Mohit,我也嘗試了backtrace(bt)命令。仍然顯示相同的「#0 0xc0199640在?()」 – SuRa