ChinaUnix.net
相关文章推荐:

gdb调试的时候出现的段错误是个地址怎么调试

程序如下: #include int main(int argc, char *argv[]){ char *str = "string1"; str[strlen(str)] = 'E'; printf("%s", str); exit(0); } 调试过程如下:怎么gdb下最后会成功输出呢? [root@node1 zhangxb]# gdb a GNU gdb Red Hat Linux (5.3post-0.20021129.18rh) Copyright 2003 Free Software Foundation, Inc. gdb is free software, covered by the GNU General Pub...

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 ?? () 这些信息跟没看有什么区别啊,请问各位也是这样的情况么?还是我的操作有误?请指点,谢谢!

by michaelwu23 - C/C++ - 2008-07-02 12:22:38 阅读(1764) 回复(3)

gdb时候用 l 察看代码出现: Line number 465 out of range; flickr.c has 242 lines. 为什么?

by greatho1507 - C/C++ - 2008-08-20 13:52:00 阅读(1742) 回复(10)

一个程序,使用g++在redhat上编译,内核是2.4.18的。一切正常。 换到一台2.4.9的机器上,运行时出现错误,于是调试,发现 一个运行到自己写的一个函数,使用s命令跟进去,进入不到函数内部 立刻就报错误。现在调试都不知道怎么调试了。 郁闷。 :(

by flytod - C/C++ - 2004-03-15 14:16:51 阅读(2759) 回复(6)

2.6.11-1.1369_FC4 这是程序: [code] #include #include void my_print(char *); void my_print2(char *); int main(int argc ,char *argv[]) { char my_string[]="hello there"; my_print(my_string); my_print2(my_string); return 0; } void my_print(char *string) { printf("the string is :%s\n",string); } void my_print2(char *string) { char *string2; int size,i; size=strlen(s...

by rainballdh - C/C++ - 2005-11-09 12:14:39 阅读(2320) 回复(8)

[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...

by zhonzn - C/C++ - 2004-08-10 17:40:02 阅读(720) 回复(2)

ld.so.1: gdb: 致命的: libiconv.so.2: 打开失败: 无此文件或目录 被杀掉 请教高手这样的问题是怎么导致的啊,我应该怎么解决? 我的安装命令: pkgadd -R /usr/local/dir1 -d gdb-6.0-sol8-sparc-local

by 西任 - Solaris - 2005-01-24 16:38:28 阅读(875) 回复(2)

顺序跟踪下一步的时候,经常在几个语句里反复 比如: 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...

by greatho1507 - C/C++ - 2009-04-02 22:54:04 阅读(2660) 回复(10)

我已经装入,而且运行程序,但是list出现下面错误 (gdb) list 1 rtld.c: No such file or directory. in rtld.c

by anttonnie - Linux论坛 - 2003-04-21 13:49:03 阅读(811) 回复(2)

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

by younese - 网络技术文档中心 - 2009-06-02 16:54:19 阅读(1145) 回复(0)

如题。 我的板子是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 ?? () 怎么回...

by urapple - C/C++ - 2012-03-07 19:01:03 阅读(8950) 回复(12)