我有核心转储文件。我在GDB路径中保留了c二进制应用程序(Built with Debug ON选项),导致核心转储和核心文件。
但是当我GDB
时,我得到的堆栈信息如下:
sura@hyde:/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)编译的。
如何获取有问题的功能名称?
答案 0 :(得分:1)
孙大信,
您发布了一个关于gdb
的问题,但HP-UX gdb不是GNU gdb
,而是由HP定制的gdb
。所以它被称为Hewlett-Packard Wildebeest (based on GDB)
- wdb
。您的问题是您拥有<{>>极版本的wdb
。现在,惠普为运行HP-UX 11i v1,11i v2或11i v3的HP 9000系统提供gdb 6.5(http://h21007.www2.hp.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c108973a801/?ciid=29080f1bace021100f1bace02110275d6e10RCRD),版本为3.0!
您似乎拥有HP-UX 11.00,因此您可以在HP-UX论坛上询问HP 11.00的最新版本wdb
。在这里问:http://h30499.www3.hp.com/t5/Languages-and-Scripting/bd-p/itrc-150#。在为PA-RISC安装最新的wdb之后,尝试再次使用它进行回溯。我希望你能用最新的wdb
获得正确的回溯。