- 论坛徽章:
- 0
|
在FREEBSD8.0的版本上用gcc編譯一段代碼,其中有coredump文件產生,但用GDB調試的時候,BT命令輸入時,系統提示no stack.不知道是怎麼回事!
編譯的時候命令:gcc -g checkid.c -o checkid
gcc 版本:
- Using built-in specs.
- Target: i386-undermydesk-freebsd
- Configured with: FreeBSD/i386 system compiler
- Thread model: posix
- gcc version 4.2.1 20070719 [FreeBSD]
复制代码
gdb版本:
- GNU gdb (GDB) 7.1 [GDB v7.1 for FreeBSD]
- Copyright (C) 2010 Free Software Foundation, Inc.
- License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
- This is free software: you are free to change and redistribute it.
- There is NO WARRANTY, to the extent permitted by law. Type "show copying"
- and "show warranty" for details.
- This GDB was configured as "i386-portbld-freebsd8.0".
- For bug reporting instructions, please see:
- <http://www.gnu.org/software/gdb/bugs/>.
复制代码
在查看stack內容時提示什麼都沒有?
- (gdb) file checkid
- Reading symbols from /usr/home/penseur/workstation/stdc/checkid...done.
- (gdb) bt
- No stack.
- (gdb)
复制代码
請高人指點一下!謝謝 |
|