程序如下:
#include
by zxbjlu1983 - C/C++ - 2006-12-07 16:23:30 阅读(1141) 回复(1)
一个多线程的程序,当出现段错误,产生core文件后,我的操作如下 gdb -c core.29519 file ./appsrv bt 能看到出错位置的情况极少,几乎每次都是打印 #0 0x030bc6ca in ?? () #1 0x03de917c in ?? () #2 0x03de9184 in ?? () #3 0x03de9180 in ?? () #4 0x03de9b90 in ?? () #5 0xfffffffc in ?? () #6 0x00000000 in ?? () 这些信息跟没看有什么区别啊,请问各位也是这样的情况么?还是我的操作有误?请指点,谢谢!
一个程序,使用g++在redhat上编译,内核是2.4.18的。一切正常。 换到一台2.4.9的机器上,运行时出现段错误,于是调试,发现 一个运行到自己写的一个函数,使用s命令跟进去,进入不到函数内部 立刻就报段错误。现在调试都不知道怎么调试了。 郁闷。 :(
2.6.11-1.1369_FC4
这是程序:
[code]
#include
[code] gcc -ggdb -o greeting greeting.c [root@test2 /root]# gdb greeting 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 det...
ld.so.1: gdb: 致命的: libiconv.so.2: 打开失败: 无此文件或目录 被杀掉 请教高手这样的问题是怎么导致的啊,我应该怎么解决? 我的安装命令: pkgadd -R /usr/local/dir1 -d gdb-6.0-sol8-sparc-local
顺序跟踪下一步的时候,经常在几个语句里反复 比如: 303 int residue=length%block_size; (gdb) 304 int end=*start+(length-residue)/block_size; (gdb) 303 int residue=length%block_size; (gdb) 304 int end=*start+(length-residue)/block_size; (gdb) 303 int residue=length%block_size; (gdb) 304 int end=*start+(length-residue)/block_size; (gdb) p residue No sym...
1、在windows的DOS窗口C盘根目录下运行命令:c:\>set CYGWIN=ntsec 2、运行cygwin,直接输入命令:c:\>chmod a+rx /bin/* 3、按照常规方法运行gdb,是不是出现jdb的调试窗口了? 大功告成。 参考: http://www.cygwin.com/ml/cygwin/2002-10/msg00616.html 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/97846/showart_1952677.html
如题。 我的板子是arm linux。如果我们的程序出问题,我让他生成core文件,可以跟踪找到问题。 可问题是板子上的空间太小,没法把gdb放上去,只能放上去gdbserver,如果远程调试core的话,我怎么才能调试他? 另外, 当我远程调试一个小的测试程序时,本地的gdb报如下信息 (gdb) target remote 192.168.111.139:7777 Remote debugging using 192.168.111.139:7777 warning: Remote failure reply: E01 0x400009f0 in ?? () 怎么回...