ChinaUnix.net
相关文章推荐:

gdb load 结束后会把PC 指针

程序如下: #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 阅读(1140) 回复(1)

相关讨论

#include #include #include #include #include #include static int flag=0; void myself() { flag=1; printf("get signal SIGALRM\n"); } main () { flag=2; signal(SIGALRM,myself); alarm(50); while(1) { sleep(1); if(flag==1) exit(0)...

by dida_327 - 内核/嵌入技术 - 2005-12-15 19:30:13 阅读(708) 回复(1)

Caution: You have set up this database to include space on disk 2 for both data and the transaction log. This can make recovery impossible if that disk fails. Use the ONLINE DATABASE command to bring this database online; SQL Server will not bring it online automatically. 请各位分析一下,提个解决办法,数据库好象也能用

by 斌子 - Sybase - 2004-02-04 09:10:09 阅读(1635) 回复(12)

我在c程序的头部有两个变量 int buf[]={1,2,3}; int *b2={4,5,6}; 然后gcc -g编译,gdb运行r (gdb) p buf $1={1,2,3} (gdb) p b2 $2=(int*) 0x2 为什么gdb能打印出来静态数组? 它怎么知道这个buf有多大? $2的打印结果我能理解,$1的打印结果我就没法理解了。如果说buf是放在数据段里面的,难道说数据段里面还有地方指名所有静态数组变量的大小么? 学汇编的时候没有注意到过啊。 请大虾指点!

by jeanlove - C/C++ - 2008-10-09 18:34:15 阅读(3716) 回复(2)

file a.out list 在使用gdb调试程序时想要列出源代码但报错: 1 ../sysdeps/i386/elf/start.S:没有那个目录或文件 in ../sysdeps/i386/elf/start.S 不知是什么原因

by wangxiaoguang - C/C++ - 2008-08-02 08:35:49 阅读(1685) 回复(8)

gdb在调试使用了动态链接库的程序的时候,在加载动态库的时候会显示: Reading symbols from shared library.................................. 好多个句号,类似进度条一样。可是偶尔会出现加号 Reading symbols from shared library...............................+..+... 哪位大侠知道这个+号的含义是??

by sakulagi - C/C++ - 2006-03-17 16:17:37 阅读(1292) 回复(1)

在create database命令中for load选项说的是跳过页面清除这一步,哪位大哥能具体说一下这个步骤的作用吗?或者直接解释一下为什么要设置for load选项呢?是减少create database的时间吗?

by ywtmh - Sybase - 2004-05-13 10:12:26 阅读(1550) 回复(4)

请问大侠:在linux下编译.pc文件的makefile怎么编写,pc中除了数据库操作语言,还需socket连接服务器。

by monkeyesa - 程序开发 - 2006-04-24 15:40:06 阅读(630) 回复(3)

大虾们 除pro*c文件以.pc做为扩展名,还有什么会以.pc为扩展名? :?:

by pl_c - Oracle - 2003-09-09 09:45:19 阅读(964) 回复(1)
by 一刀砍死 - IT图书与评论 - 2007-12-16 10:49:55 阅读(2533) 回复(0)

(gdb) where #0 0xe784 in normal+0x2c () 请问后面的+0x2c ()什么意思?

by dutysmart - C/C++ - 2009-04-21 09:50:23 阅读(1140) 回复(0)