当前位置: 技术问答>linux和unix
c++调试问题
来源: 互联网 发布时间:2015-01-02
本文导语: 我在sun solaris 5.8下用g++ 3.2开发程序,运行后程序dump产生core文件,我想用gdb打开,可是总是提示格式错误 $ gdb core GNU gdb 5.0 Copyright 2000 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public Lic...
我在sun solaris 5.8下用g++ 3.2开发程序,运行后程序dump产生core文件,我想用gdb打开,可是总是提示格式错误
$ gdb core
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.8"..."/usr/cuigg/hscomm/testcli/core": not in executable format: File format not recognized
(gdb)
请问为什么
$ gdb core
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.8"..."/usr/cuigg/hscomm/testcli/core": not in executable format: File format not recognized
(gdb)
请问为什么
|
gdb 你的可执行程序 core